mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 16:27:33 +00:00
fix
This commit is contained in:
parent
74de886231
commit
0aec4dc56a
@ -28,6 +28,7 @@ limitations under the License. -->
|
||||
class="mr-5 cp"
|
||||
iconName="remove_circle_outline"
|
||||
size="middle"
|
||||
v-show="conditionsList.length !== 1"
|
||||
@click="removeConditions($event, index)"
|
||||
/>
|
||||
<Icon
|
||||
@ -113,6 +114,9 @@ function createConditions(e: any) {
|
||||
|
||||
function removeConditions(e: any, key: number) {
|
||||
e.stopPropagation();
|
||||
if (conditionsList.value.length === 1) {
|
||||
return;
|
||||
}
|
||||
conditionsList.value = conditionsList.value.filter(
|
||||
(_, index: number) => index !== key
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user