diff --git a/package.json b/package.json index 70acfdf0..9ae2cda1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@webitel/ui-sdk", - "version": "24.12.4", + "version": "24.12.5", "private": false, "scripts": { "dev": "vite", diff --git a/src/modules/QueryFilters/components/filter-from-to.vue b/src/modules/QueryFilters/components/filter-from-to.vue index ebf6ae44..28d29fc2 100644 --- a/src/modules/QueryFilters/components/filter-from-to.vue +++ b/src/modules/QueryFilters/components/filter-from-to.vue @@ -87,7 +87,8 @@ export default { }, async setFrom(value) { - const filterValue = { from: value, to: this.value.to }; + const from = value ? value : null; // if value is empty, set it to null + const filterValue = { from, to: this.value.to }; await this.setValue({ filter: this.filterQuery, value: filterValue }); await this.setValueToQuery({ filterQuery: `${this.filterQuery}From`, @@ -96,7 +97,8 @@ export default { }, async setTo(value) { - const filterValue = { from: this.value.from, to: value }; + const to = value ? value : null; // if value is empty, set it to null + const filterValue = { from: this.value.from, to }; await this.setValue({ filter: this.filterQuery, value: filterValue }); await this.setValueToQuery({ filterQuery: `${this.filterQuery}To`,