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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -84,22 +84,29 @@ 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
- setSettingsData((prev) => ({
91
- ...prev,
92
- quick_tab: {
93
- ...prev?.quick_tab,
94
- hide_list: tabsApiData,
95
- show_list: [],
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
- // setCurrentQuickAttribute(settingsData?.quick_tab?.attribute || "");
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