@proveanything/smartlinks-utils-ui 1.13.19 → 1.14.0

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.
@@ -1254,7 +1254,7 @@ var useProductBrowse = (args) => {
1254
1254
  if (search.trim()) body.query = { search: search.trim() };
1255
1255
  let res = null;
1256
1256
  if (SL?.products?.query) {
1257
- res = await SL.products.query(collectionId, body);
1257
+ res = await SL.products.query(collectionId, body, admin);
1258
1258
  } else if (SL?.product?.query) {
1259
1259
  res = await SL.product.query(collectionId, body, admin);
1260
1260
  } else {
@@ -1468,7 +1468,7 @@ var useSingleProduct = (args) => {
1468
1468
  if (p) return toBrowseItem2(p, productId);
1469
1469
  }
1470
1470
  if (SL?.products?.get) {
1471
- const p = await SL.products.get(collectionId, productId);
1471
+ const p = await SL.products.get(collectionId, productId, admin);
1472
1472
  if (p) return toBrowseItem2(p, productId);
1473
1473
  }
1474
1474
  const list = SL?.products?.list ? await SL.products.list(collectionId, admin) : SL?.product?.list ? await SL.product.list(collectionId, admin) : [];
@@ -10032,8 +10032,8 @@ function RecordsAdminShellInner(props) {
10032
10032
  if (savedFromRuleWizard && !isCollection && savedRecordId) {
10033
10033
  setSelectedRecordId(savedRecordId);
10034
10034
  }
10035
- if (!isCollection && isCreate && activeScope === "collection") {
10036
- setSelectedRecordId(savedRecordId ?? null);
10035
+ if (!isCollection && isCreate && savedRecordId) {
10036
+ setSelectedRecordId(savedRecordId);
10037
10037
  }
10038
10038
  setIsReconcilingRecordSelection(false);
10039
10039
  },