diff --git a/core/frontend/src/components/widget/deWidget/DeDate.vue b/core/frontend/src/components/widget/deWidget/DeDate.vue index 13f675a979..65fed44752 100644 --- a/core/frontend/src/components/widget/deWidget/DeDate.vue +++ b/core/frontend/src/components/widget/deWidget/DeDate.vue @@ -371,7 +371,7 @@ export default { if (this.refreshHandler()) { return } - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.values = this.fillValueDerfault() this.dateChange(this.values) diff --git a/core/frontend/src/components/widget/deWidget/DeInputSearch.vue b/core/frontend/src/components/widget/deWidget/DeInputSearch.vue index 238627c2a6..684cb44905 100644 --- a/core/frontend/src/components/widget/deWidget/DeInputSearch.vue +++ b/core/frontend/src/components/widget/deWidget/DeInputSearch.vue @@ -86,7 +86,7 @@ export default { } }, created() { - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.value = this.fillValueDerfault() this.search() diff --git a/core/frontend/src/components/widget/deWidget/DeNumberRange.vue b/core/frontend/src/components/widget/deWidget/DeNumberRange.vue index cbf698da51..bee6b686e1 100644 --- a/core/frontend/src/components/widget/deWidget/DeNumberRange.vue +++ b/core/frontend/src/components/widget/deWidget/DeNumberRange.vue @@ -144,7 +144,7 @@ export default { } }, created() { - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if ((this.element.options.value && this.element.options.value.length > 0) || existLastValidFilters) { const values = this.fillValueDerfault() this.form.min = values[0] diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index 21cce4bbbb..b54138b8fd 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -387,7 +387,7 @@ export default { }, initLoad() { this.initOptions(this.fillFirstSelected) - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if ((this.element.options.value || existLastValidFilters) && !this.selectFirst) { this.value = this.fillValueDerfault() this.changeValue(this.value) diff --git a/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue b/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue index b9569d2dc1..a69f0a352c 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue @@ -342,7 +342,7 @@ export default { initLoad() { this.value = this.element.options.attrs.multiple ? [] : null this.initOptions() - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.value = this.fillValueDerfault() this.changeValue(this.value) diff --git a/core/frontend/src/components/widget/deWidget/DeSelectTree.vue b/core/frontend/src/components/widget/deWidget/DeSelectTree.vue index de37cb107d..32a81065ee 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelectTree.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelectTree.vue @@ -275,7 +275,7 @@ export default { this.value = this.fillValueDerfault() this.data = [] this.initOptions() - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.value = this.fillValueDerfault() this.changeValue(this.value)