rez-table-listing-mui 1.3.59 → 1.3.60
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.
package/package.json
CHANGED
|
@@ -84,29 +84,22 @@ const QuickTab = ({
|
|
|
84
84
|
|
|
85
85
|
// When user changes attribute
|
|
86
86
|
useEffect(() => {
|
|
87
|
-
if (currentQuickAttribute === settingsData?.quick_tab?.attribute) return;
|
|
87
|
+
// if (currentQuickAttribute === settingsData?.quick_tab?.attribute) return;
|
|
88
88
|
|
|
89
|
-
if (tabsApiData?.length) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
// if (tabsApiData?.length) {
|
|
90
|
+
setSettingsData((prev) => ({
|
|
91
|
+
...prev,
|
|
92
|
+
quick_tab: {
|
|
93
|
+
...prev?.quick_tab,
|
|
94
|
+
hide_list: tabsApiData,
|
|
95
|
+
show_list: [],
|
|
96
|
+
},
|
|
97
|
+
}));
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
quick_tab: {
|
|
104
|
-
...prev?.quick_tab,
|
|
105
|
-
hide_list: [],
|
|
106
|
-
show_list: [],
|
|
107
|
-
},
|
|
108
|
-
}));
|
|
109
|
-
}
|
|
99
|
+
setCurrentQuickAttribute(settingsData?.quick_tab?.attribute || "");
|
|
100
|
+
// }
|
|
101
|
+
|
|
102
|
+
// setCurrentQuickAttribute(settingsData?.quick_tab?.attribute || "");
|
|
110
103
|
}, [tabsApiData]);
|
|
111
104
|
|
|
112
105
|
// Validation when user changes show list or hide list
|