@indigina/ui-kit 1.1.197 → 1.1.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7215,6 +7215,7 @@ let KitGridViewsState = class KitGridViewsState {
|
|
|
7215
7215
|
title: setting.key,
|
|
7216
7216
|
group: setting.group,
|
|
7217
7217
|
type: KitGridViewType.USER,
|
|
7218
|
+
hidden: false,
|
|
7218
7219
|
viewState: setting.value && JSON.parse(setting.value),
|
|
7219
7220
|
}))), map(values => ([
|
|
7220
7221
|
...action.payload.defaultItems ?? [],
|
|
@@ -7299,7 +7300,7 @@ let KitGridViewsState = class KitGridViewsState {
|
|
|
7299
7300
|
const areViewsEqual = (firstView, secondView) => firstView.title === secondView.title && firstView.type === secondView.type;
|
|
7300
7301
|
const updatedViews = views.map(view => {
|
|
7301
7302
|
const configItem = viewsConfig.find(item => areViewsEqual(item, view)) ?? null;
|
|
7302
|
-
return configItem && { ...view, hidden: configItem.hidden } || view;
|
|
7303
|
+
return configItem && { ...view, hidden: configItem.hidden ?? false } || view;
|
|
7303
7304
|
});
|
|
7304
7305
|
const existingViews = updatedViews.filter(view => viewsConfig.some(config => areViewsEqual(config, view)));
|
|
7305
7306
|
const newViews = updatedViews.filter(view => !viewsConfig.some(config => areViewsEqual(config, view)));
|