rez-table-listing-mui 1.3.46 → 1.3.47

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.46",
3
+ "version": "1.3.47",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -175,12 +175,17 @@ const Sorting = ({
175
175
 
176
176
  const sensors = useSensors(useSensor(PointerSensor));
177
177
 
178
- const activeTabIndex = columnTabState?.tabs?.findIndex(
179
- (tab) =>
180
- tab?.tab_name?.value == activeTab ||
181
- tab?.tab_name?.label?.toLowerCase() == activeTab?.toLowerCase()
182
- );
183
-
178
+ const activeTabIndex = columnTabState?.isDefault
179
+ ? quickTabStates?.show_list?.findIndex(
180
+ (tab) =>
181
+ tab?.value === activeTab ||
182
+ tab?.label?.toLowerCase() === activeTab?.toLowerCase()
183
+ )
184
+ : columnTabState?.tabs?.findIndex(
185
+ (tab) =>
186
+ tab?.tab_name?.value == activeTab ||
187
+ tab?.tab_name?.label?.toLowerCase() == activeTab?.toLowerCase()
188
+ );
184
189
  /**
185
190
  * * What is happening here?
186
191
  *
@@ -542,7 +542,7 @@ function ListingView() {
542
542
  columnsDataLoading={metaQuery.isPending}
543
543
  quickTabAttributes={quickTabAttributes?.data}
544
544
  quickTabAttributesLoading={quickTabAttributes?.isLoading}
545
- columnTabAttributes={settingsColumnAttributes?.data}
545
+ columnTabAttributes={settingsColumnAttributes?.data?.slice(0, 25)}
546
546
  columnAttributesLoading={settingsColumnAttributes?.isLoading}
547
547
  sortingTabAttributes={sortingTabAttributes?.data}
548
548
  sortingTabAttributesLoading={sortingTabAttributes?.isLoading}