@proveanything/smartlinks-utils-ui 0.6.0 → 0.6.1
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.
|
@@ -4147,7 +4147,12 @@ function RecordsAdminShell(props) {
|
|
|
4147
4147
|
}, [activeScope]);
|
|
4148
4148
|
const editingScope = useMemo(() => {
|
|
4149
4149
|
if (activeScope === "rule" || activeScope === "collection") {
|
|
4150
|
-
if (selectedRecordId === null)
|
|
4150
|
+
if (selectedRecordId === null) {
|
|
4151
|
+
if (activeScope === "collection" && cardinality === "collection") {
|
|
4152
|
+
return parseRef("");
|
|
4153
|
+
}
|
|
4154
|
+
return null;
|
|
4155
|
+
}
|
|
4151
4156
|
if (selectedRecordId === DRAFT_ID) {
|
|
4152
4157
|
return parseRef("");
|
|
4153
4158
|
}
|
|
@@ -4165,7 +4170,7 @@ function RecordsAdminShell(props) {
|
|
|
4165
4170
|
return parseRef(buildRef({ productId: selectedProductId, batchId: selectedBatchId }));
|
|
4166
4171
|
}
|
|
4167
4172
|
return parseRef(buildRef({ productId: selectedProductId }));
|
|
4168
|
-
}, [activeScope, selectedRecordId, recordList.items, selectedProductId, drillTab, selectedVariantId, selectedBatchId]);
|
|
4173
|
+
}, [activeScope, cardinality, selectedRecordId, recordList.items, selectedProductId, drillTab, selectedVariantId, selectedBatchId]);
|
|
4169
4174
|
const isCollection = cardinality === "collection";
|
|
4170
4175
|
const editingTargetScope = editingScope;
|
|
4171
4176
|
const skipNextItemResetRef = useRef(false);
|