@proveanything/smartlinks-utils-ui 0.6.1 → 0.6.2
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.
|
@@ -4238,7 +4238,14 @@ function RecordsAdminShell(props) {
|
|
|
4238
4238
|
// inheritance chain and load that exact row. Drafts (`DRAFT_ID`) and
|
|
4239
4239
|
// pinned-anchor tabs (Products) leave `recordId` undefined so the
|
|
4240
4240
|
// resolver runs `match()` against the anchors above.
|
|
4241
|
-
|
|
4241
|
+
//
|
|
4242
|
+
// In collection-cardinality mode the per-item UUID lives in
|
|
4243
|
+
// `selectedItemId` (set by the right-pane item list onOpen handler),
|
|
4244
|
+
// not `selectedRecordId`. Without this branch the resolver would
|
|
4245
|
+
// fall back to anchor-based `match()` at the collection root and the
|
|
4246
|
+
// editor would mount against `null` data — surfacing as the host's
|
|
4247
|
+
// "Select a {noun} from the list to edit" placeholder.
|
|
4248
|
+
recordId: isCollection && selectedItemId && selectedItemId !== DRAFT_ID ? selectedItemId : selectedRecordId && selectedRecordId !== DRAFT_ID ? selectedRecordId : void 0,
|
|
4242
4249
|
supportedScopes: supportedForResolution,
|
|
4243
4250
|
enabled: !!editingTargetScope
|
|
4244
4251
|
});
|