@antscorp/antsomi-ui 1.3.5-beta.511 → 1.3.5-beta.512

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.
@@ -387,7 +387,6 @@ export function useDataTableListing(props) {
387
387
  });
388
388
  }, [mapObject, updateModifyColumn]);
389
389
  const onApplyModifyColumn = useCallback((args) => __awaiter(this, void 0, void 0, function* () {
390
- var _h;
391
390
  const { selectedMetrics, columnSetName, existColumnSet } = args || {};
392
391
  const flattenMetrics = flatTree(columnMetricsData, 'child');
393
392
  const selectedColumnMetrics = selectedMetrics
@@ -396,12 +395,14 @@ export function useDataTableListing(props) {
396
395
  let exitModifyColumnId = '';
397
396
  // Update exits column set
398
397
  // columnSetName is empty that mean save for Custom column set
399
- if (existColumnSet || columnSetName === '') {
398
+ if (existColumnSet /* || columnSetName === '' */) {
400
399
  exitModifyColumnId = (existColumnSet === null || existColumnSet === void 0 ? void 0 : existColumnSet.id) || '';
401
- if (columnSetName === '') {
402
- exitModifyColumnId =
403
- ((_h = modifyColumnsData === null || modifyColumnsData === void 0 ? void 0 : modifyColumnsData.find(modifyColumn => modifyColumn.modifyName === 'Custom')) === null || _h === void 0 ? void 0 : _h.modifyColId) || '';
404
- }
400
+ // if (columnSetName === '') {
401
+ // exitModifyColumnId =
402
+ // modifyColumnsData?.find(
403
+ // modifyColumn => modifyColumn.modifyName === 'Custom', // NOTES: Hard Custom name, will move constants
404
+ // )?.modifyColId || '';
405
+ // }
405
406
  }
406
407
  /**
407
408
  * Check if exitModifyColumnId is not empty
@@ -423,7 +424,7 @@ export function useDataTableListing(props) {
423
424
  return {
424
425
  success: !!status,
425
426
  };
426
- }), [columnMetricsData, createModifyColumn, mapObject, modifyColumnsData, updateModifyColumn]);
427
+ }), [columnMetricsData, createModifyColumn, mapObject, updateModifyColumn]);
427
428
  const handleUpdatePagination = useCallback((pagination) => {
428
429
  const localStorageValues = parseJSONFromLocalStorage(localStorageKey) || {};
429
430
  // Set State
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.511",
3
+ "version": "1.3.5-beta.512",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",