@firecms/core 3.0.0-canary.255 → 3.0.0-canary.257

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/index.es.js CHANGED
@@ -11825,7 +11825,7 @@ function useDataSourceTableController({
11825
11825
  sortBy: initialSortUrl
11826
11826
  } = parseFilterAndSort(window.location.search);
11827
11827
  const [filterValues_0, setFilterValues] = React__default.useState(forceFilter ?? (updateUrl ? initialFilterUrl : void 0) ?? initialFilter ?? void 0);
11828
- const [sortBy_0, setSortBy] = React__default.useState(initialSortUrl ?? initialSortInternal);
11828
+ const [sortBy_0, setSortBy] = React__default.useState((updateUrl ? initialSortUrl : void 0) ?? initialSortInternal);
11829
11829
  useUpdateUrl(filterValues_0, sortBy_0, searchString, updateUrl);
11830
11830
  const collectionScroll = scrollRestoration?.getCollectionScroll(fullPath, filterValues_0);
11831
11831
  const initialItemCount = collectionScroll?.data.length ?? pageSize;
@@ -12413,7 +12413,7 @@ const editEntityAction = {
12413
12413
  if (collection) {
12414
12414
  addRecentId(collection.id, entity.id);
12415
12415
  }
12416
- const path = collection?.collectionGroup ? collection.path : fullPath ?? collection?.path ?? entity.path;
12416
+ const path = collection?.collectionGroup ? entity.path : fullPath ?? collection?.path ?? entity.path;
12417
12417
  const newFullIdPath = collection?.collectionGroup ? collection.id : fullIdPath ?? collection?.id ?? entity.path;
12418
12418
  const defaultSelectedView = resolveDefaultSelectedView(collection ? collection.defaultSelectedView : void 0, {
12419
12419
  status: "existing",