@ai-matrx/design-system 0.49.11 → 0.49.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.
@@ -42664,7 +42664,7 @@ function ColumnHeaderCell({
42664
42664
  "rounded p-0.5 transition-colors",
42665
42665
  filterActive ? "text-primary hover:text-primary/80" : "text-muted-foreground/40 hover:text-muted-foreground"
42666
42666
  ),
42667
- children: filterKind ? /* @__PURE__ */ jsx38(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : sortable ? /* @__PURE__ */ jsx38(ArrowUpDown, { className: "h-3 w-3" }) : /* @__PURE__ */ jsx38(ChevronDown, { className: "h-3 w-3" })
42667
+ children: filterKind || sortable ? /* @__PURE__ */ jsx38(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : /* @__PURE__ */ jsx38(ChevronDown, { className: "h-3 w-3" })
42668
42668
  }
42669
42669
  ) }) }),
42670
42670
  /* @__PURE__ */ jsx38(TooltipContent, { children: menuLabel })
@@ -50267,10 +50267,11 @@ function MatrxDataTableCore(coreProps) {
50267
50267
  setFacetState({});
50268
50268
  facetRequestRef.current = /* @__PURE__ */ new Map();
50269
50269
  }, [facetsEnabled, data, searchValue]);
50270
+ const totalIsKnown = !isLoading && !readView.failure;
50270
50271
  useEffect21(() => {
50271
- if (!controlledQuery || controlledQuery.state.page === safePage) return;
50272
+ if (!controlledQuery || !totalIsKnown || controlledQuery.state.page === safePage) return;
50272
50273
  emitControlledQueryChange({ page: safePage });
50273
- }, [controlledQuery, emitControlledQueryChange, safePage]);
50274
+ }, [controlledQuery, emitControlledQueryChange, safePage, totalIsKnown]);
50274
50275
  const selectedRow = useMemo11(() => {
50275
50276
  if (!selectedId) return null;
50276
50277
  return data.find((r) => getRowId(r) === selectedId) ?? null;