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