diff --git a/frontend/src/components/business/ms-assertion/comp/StatusCodeTab.vue b/frontend/src/components/business/ms-assertion/comp/StatusCodeTab.vue
index 3c4d288457..fbaaf01008 100644
--- a/frontend/src/components/business/ms-assertion/comp/StatusCodeTab.vue
+++ b/frontend/src/components/business/ms-assertion/comp/StatusCodeTab.vue
@@ -2,16 +2,7 @@
{{ t('ms.assertion.statusCode') }}
-
+
{{ t(item.label) }}
@@ -20,7 +11,12 @@
();
const condition = useVModel(props, 'data', emit);
const showInput = computed(() => condition.value.condition !== 'none' && condition.value.condition !== '');
+ function clearExpectedValue() {
+ if (
+ condition.value.condition === 'UNCHECK' ||
+ condition.value.condition === 'NOT_EMPTY' ||
+ condition.value.condition === 'EMPTY'
+ ) {
+ condition.value.expectedValue = '';
+ }
+ emit('change', {
+ ...condition.value,
+ });
+ }
diff --git a/frontend/src/components/pure/ms-advance-filter/index.ts b/frontend/src/components/pure/ms-advance-filter/index.ts
index 1f23868af8..4d3762ed8d 100644
--- a/frontend/src/components/pure/ms-advance-filter/index.ts
+++ b/frontend/src/components/pure/ms-advance-filter/index.ts
@@ -21,7 +21,6 @@ const EMPTY = { label: 'advanceFilter.operator.empty', value: 'EMPTY' };
const NOT_EMPTY = { label: 'advanceFilter.operator.not_empty', value: 'NOT_EMPTY' };
const REGEX = { label: 'advanceFilter.operator.regexp', value: 'REGEX' };
const LENGTH_EQUAL = { label: 'advanceFilter.operator.length.equal', value: 'LENGTH_EQUALS' };
-const LENGTH_NOT_EQUAL = { label: 'advanceFilter.operator.length.not_equal', value: 'LENGTH_NOT_EQUALS' };
const LENGTH_GT = { label: 'advanceFilter.operator.length.gt', value: 'LENGTH_GT' };
const LENGTH_GE = { label: 'advanceFilter.operator.length.ge', value: 'LENGTH_GT_OR_EQUALS' };
const LENGTH_LT = { label: 'advanceFilter.operator.length.lt', value: 'LENGTH_LT' };