rez-table-listing-mui 1.3.50 → 1.3.51

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.50",
3
+ "version": "1.3.51",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -53,6 +53,12 @@ export function QuickFilterSettings({
53
53
  } = filterSettingStates;
54
54
 
55
55
  const hasAPIData = Boolean(Object.entries(columnsData).length);
56
+ let disbaledCondition =
57
+ quickTabStates?.show_list?.length === 0 ||
58
+ (columnTabState?.isDefault
59
+ ? columnTabState?.show_list?.length === 0
60
+ : columnTabState?.tabs?.find((tab) => tab?.show_list?.length === 0)
61
+ ?.show_list?.length === 0);
56
62
 
57
63
  const handleTabChange = (_: React.SyntheticEvent, newValue: number) => {
58
64
  setTabValue(newValue);
@@ -199,6 +205,7 @@ export function QuickFilterSettings({
199
205
  <CustomButton
200
206
  // disabled={saveButtonError?.hasError}
201
207
  // disabled={saveButtonError?.hasError}
208
+ disabled={disbaledCondition}
202
209
  onClick={handleSaveSetSettingsData}
203
210
  >
204
211
  {view === "listing" ? "Save Quick Filter" : "Save Kanban Layout"}