Skip to content

Commit

Permalink
Merge pull request #205 from webitel/fix/reset-condition
Browse files Browse the repository at this point in the history
fix:reset condition[WTEL-5770](https://webitel.atlassian.net/browse/W…
  • Loading branch information
Lera24 authored Dec 20, 2024
2 parents f6acdc4 + 756c71b commit 582d225
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 582d225

Please sign in to comment.