@proveanything/smartlinks-utils-ui 0.11.1 → 0.11.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.
@@ -3105,7 +3105,7 @@ function useShellEditorTarget(args) {
3105
3105
  const isDraftScope = rawScope.includes("__draft__") || rawScope.includes("item:draft:");
3106
3106
  const draftKey = isDraftScope ? isCollection && selectedItemId && isDraftId2(selectedItemId) ? `item:${selectedItemId}` : `${activeScope}:${draftKind ?? "wizard"}` : void 0;
3107
3107
  const itemDraftCreate = isCollection && !!selectedItemId && isDraftId2(selectedItemId);
3108
- const createMode = itemDraftCreate || isCollection && !!selectedItemId && !resolved.recordId;
3108
+ const createMode = itemDraftCreate || isDraftScope || isCollection && !!selectedItemId && !resolved.recordId;
3109
3109
  return {
3110
3110
  scope: editingTargetScope,
3111
3111
  // Item drafts must NOT inherit the parent rule's resolved recordId —