Skip to content

Commit

Permalink
24.10.14: small filters module fixes [WTEL-3392]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Sep 19, 2024
1 parent 9ba9fb4 commit 9ef7964
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "24.10.12",
"version": "24.10.14",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Filters/components/filter-search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const v$ =
{ $autoDirty: true },
);
v$.value.$touch();
if (v$) v$.value.$touch();
async function changeMode({ value }, { clearValue = true } = {}) {
if (clearValue) await setValue({ name: filterName.value, value: '' });
Expand Down
7 changes: 5 additions & 2 deletions src/store/new/modules/tableStoreModule/tableStoreModule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import FilterEvent from '../../../../modules/Filters/enums/FilterEvent.enum.js';
import { queryToSortAdapter, sortToQueryAdapter } from '../../../../scripts/sortQueryAdapters.js';
import {
queryToSortAdapter,
sortToQueryAdapter,
} from '../../../../scripts/sortQueryAdapters.js';

const state = () => ({
headers: [],
Expand All @@ -18,7 +21,7 @@ const getters = {

FIELDS: (state) => {
const fields = state.headers.reduce((fields, { show, field }) => {
if (show) return [...fields, field];
if (show || show === undefined) return [...fields, field];
return fields;
}, []);

Expand Down

0 comments on commit 9ef7964

Please sign in to comment.