From 756c71bb535f7b92d3ae74571e5ade21c7a76e99 Mon Sep 17 00:00:00 2001 From: Lera24 Date: Fri, 20 Dec 2024 11:08:16 +0200 Subject: [PATCH] fix:reset condition[WTEL-5770](https://webitel.atlassian.net/browse/WTEL-5770) --- .../conditions/components/opened-sla-conditions.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/configuration/modules/lookups/modules/slas/modules/conditions/components/opened-sla-conditions.vue b/src/modules/configuration/modules/lookups/modules/slas/modules/conditions/components/opened-sla-conditions.vue index a41647ab..faa357da 100644 --- a/src/modules/configuration/modules/lookups/modules/slas/modules/conditions/components/opened-sla-conditions.vue +++ b/src/modules/configuration/modules/lookups/modules/slas/modules/conditions/components/opened-sla-conditions.vue @@ -134,6 +134,7 @@ import ConditionPopup from './opened-sla-condition-popup.vue'; import convertDurationWithMinutes from '@webitel/ui-sdk/src/scripts/convertDurationWithMinutes.js'; import { useTableEmpty } from '@webitel/ui-sdk/src/modules/TableComponentModule/composables/useTableEmpty.js'; import filters from '../modules/filters/store/filters.js'; +import deepEqual from 'deep-equal'; const props = defineProps({ namespace: { @@ -215,11 +216,13 @@ const refresh = () => { loadData(); }; -watch(() => filtersValue.value, () => { +watch(() => filtersValue.value, (newValue, oldValue) => { // https://webitel.atlassian.net/browse/WTEL-5744 // because 'selected' value needs cleaned when changing filters - resetState(); + if(!deepEqual(newValue, oldValue)) { + resetState(); + } });