Skip to content

Commit

Permalink
fix:reset condition[WTEL-5770](https://webitel.atlassian.net/browse/W…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lera24 committed Dec 20, 2024
1 parent f6acdc4 commit 756c71b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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();
}
});
</script>

Expand Down

0 comments on commit 756c71b

Please sign in to comment.