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
|
@@ -175,12 +175,17 @@ const Sorting = ({
|
|
|
175
175
|
|
|
176
176
|
const sensors = useSensors(useSensor(PointerSensor));
|
|
177
177
|
|
|
178
|
-
const activeTabIndex = columnTabState?.
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
|
|
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
|
*
|
package/src/view/ListingView.tsx
CHANGED
|
@@ -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}
|