@firecms/core 3.0.0-canary.256 → 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.umd.js CHANGED
@@ -11823,7 +11823,7 @@
11823
11823
  sortBy: initialSortUrl
11824
11824
  } = parseFilterAndSort(window.location.search);
11825
11825
  const [filterValues_0, setFilterValues] = React.useState(forceFilter ?? (updateUrl ? initialFilterUrl : void 0) ?? initialFilter ?? void 0);
11826
- const [sortBy_0, setSortBy] = React.useState(initialSortUrl ?? initialSortInternal);
11826
+ const [sortBy_0, setSortBy] = React.useState((updateUrl ? initialSortUrl : void 0) ?? initialSortInternal);
11827
11827
  useUpdateUrl(filterValues_0, sortBy_0, searchString, updateUrl);
11828
11828
  const collectionScroll = scrollRestoration?.getCollectionScroll(fullPath, filterValues_0);
11829
11829
  const initialItemCount = collectionScroll?.data.length ?? pageSize;
@@ -12411,7 +12411,7 @@
12411
12411
  if (collection) {
12412
12412
  addRecentId(collection.id, entity.id);
12413
12413
  }
12414
- const path = collection?.collectionGroup ? collection.path : fullPath ?? collection?.path ?? entity.path;
12414
+ const path = collection?.collectionGroup ? entity.path : fullPath ?? collection?.path ?? entity.path;
12415
12415
  const newFullIdPath = collection?.collectionGroup ? collection.id : fullIdPath ?? collection?.id ?? entity.path;
12416
12416
  const defaultSelectedView = resolveDefaultSelectedView(collection ? collection.defaultSelectedView : void 0, {
12417
12417
  status: "existing",