rez-table-listing-mui 1.2.3 → 1.2.4

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.2.3",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -79,7 +79,7 @@ const QuickTab = ({
79
79
  },
80
80
  }));
81
81
 
82
- setCurrentQuickAttribute(settingsData.quick_tab?.attribute || "");
82
+ setCurrentQuickAttribute(settingsData?.quick_tab?.attribute || "");
83
83
  }
84
84
  }, [tabsApiData]);
85
85
 
@@ -323,7 +323,7 @@ const QuickTab = ({
323
323
  setSettingsData((prev) => ({
324
324
  ...prev,
325
325
  quick_tab: {
326
- ...prev.quick_tab,
326
+ ...prev?.quick_tab,
327
327
  show_list: newShowList,
328
328
  hide_list: newHideList,
329
329
  },
@@ -353,7 +353,7 @@ const QuickTab = ({
353
353
  setSettingsData((prev) => ({
354
354
  ...prev,
355
355
  quick_tab: {
356
- ...prev.quick_tab,
356
+ ...prev?.quick_tab,
357
357
  show_list: newShowList,
358
358
  hide_list: newHideList,
359
359
  },
@@ -379,7 +379,7 @@ const QuickTab = ({
379
379
  setSettingsData((prev) => ({
380
380
  ...prev,
381
381
  quick_tab: {
382
- ...prev.quick_tab,
382
+ ...prev?.quick_tab,
383
383
  show_list: [...currentShowList, ...limitedHideList],
384
384
  hide_list: currentHideList.filter(
385
385
  (item) => !limitedHideList.includes(item)
@@ -392,7 +392,7 @@ const QuickTab = ({
392
392
  setSettingsData((prev) => ({
393
393
  ...prev,
394
394
  quick_tab: {
395
- ...prev.quick_tab,
395
+ ...prev?.quick_tab,
396
396
  hide_list: [
397
397
  ...(prev?.quick_tab?.hide_list || []),
398
398
  ...(prev?.quick_tab?.show_list || []),
@@ -407,7 +407,7 @@ const QuickTab = ({
407
407
  setSettingsData((prev) => ({
408
408
  ...prev,
409
409
  quick_tab: {
410
- ...prev.quick_tab,
410
+ ...prev?.quick_tab,
411
411
  isAllSelected: e.target.checked,
412
412
  },
413
413
  }));
@@ -418,7 +418,7 @@ const QuickTab = ({
418
418
  setSettingsData((prev) => ({
419
419
  ...prev,
420
420
  quick_tab: {
421
- ...prev.quick_tab,
421
+ ...prev?.quick_tab,
422
422
  isCombineOther: e.target.checked,
423
423
  },
424
424
  }));
@@ -448,7 +448,7 @@ const QuickTab = ({
448
448
  setSettingsData((prev) => ({
449
449
  ...prev,
450
450
  quick_tab: {
451
- ...prev.quick_tab,
451
+ ...prev?.quick_tab,
452
452
  show_list: toShowList,
453
453
  hide_list: toHideList,
454
454
  },
@@ -148,7 +148,7 @@ export function QuickFilterSettings({
148
148
  {!columnsDataLoading && hasAPIData && (
149
149
  <DialogActions>
150
150
  <CustomButton
151
- disabled={saveButtonError?.hasError}
151
+ // disabled={saveButtonError?.hasError}
152
152
  onClick={handleSaveSetSettingsData}
153
153
  >
154
154
  Save Quick Filter