@proveanything/smartlinks-utils-ui 0.12.24 → 0.12.25
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.
|
@@ -9507,8 +9507,9 @@ function RecordsAdminShellInner(props) {
|
|
|
9507
9507
|
if (!productPinnedFromContext || contextScopeMode !== "strict") return topLevelScopes;
|
|
9508
9508
|
return topLevelScopes.filter((s) => s !== "collection" && s !== "rule" && s !== "all");
|
|
9509
9509
|
}, [productPinnedFromContext, contextScopeMode, topLevelScopes]);
|
|
9510
|
-
const
|
|
9511
|
-
const
|
|
9510
|
+
const drillDepthAllowed = cardinality === "singleton";
|
|
9511
|
+
const allowVariantDepth = drillDepthAllowed && (maxDrillDepth === "variant" || maxDrillDepth === "batch");
|
|
9512
|
+
const allowBatchDepth = drillDepthAllowed && maxDrillDepth === "batch";
|
|
9512
9513
|
const drillVariantsAllowed = useMemo(
|
|
9513
9514
|
() => allowVariantDepth && (probe.isLoading || probe.hasVariants),
|
|
9514
9515
|
[allowVariantDepth, probe.isLoading, probe.hasVariants]
|