@ai-matrx/design-system 0.50.11 → 0.50.12
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/dist/data-table/index.js
CHANGED
|
@@ -53682,7 +53682,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
53682
53682
|
});
|
|
53683
53683
|
}, []);
|
|
53684
53684
|
useEffect26(() => {
|
|
53685
|
-
setFacetState({});
|
|
53685
|
+
setFacetState((current) => Object.keys(current).length === 0 ? current : {});
|
|
53686
53686
|
for (const [colId, ticket] of facetRequestRef.current) {
|
|
53687
53687
|
facetRequestRef.current.set(colId, ticket + 1);
|
|
53688
53688
|
}
|
|
@@ -56017,7 +56017,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
56017
56017
|
label: col.header,
|
|
56018
56018
|
...embedded ? { plainLabel: true } : {},
|
|
56019
56019
|
labelText: headerLabel,
|
|
56020
|
-
...facetsEnabled || meta?.kind !== void 0 && meta.kind !== null && coreSuggestionsEnabled ? {
|
|
56020
|
+
...facetsEnabled || meta?.kind !== void 0 && meta.kind !== null && coreSuggestionsEnabled && !col.filterOptions?.length ? {
|
|
56021
56021
|
facets: facetState[id]?.data ?? null,
|
|
56022
56022
|
facetsLoading: facetState[id]?.loading ?? false,
|
|
56023
56023
|
...facetState[id]?.error === void 0 ? {} : { facetsError: facetState[id]?.error },
|