diff --git a/packages/sanity/src/core/create/start-in-create/StartInCreateAction.tsx b/packages/sanity/src/core/create/start-in-create/StartInCreateAction.tsx index aa901a22b1d6..856da22909d0 100644 --- a/packages/sanity/src/core/create/start-in-create/StartInCreateAction.tsx +++ b/packages/sanity/src/core/create/start-in-create/StartInCreateAction.tsx @@ -78,7 +78,6 @@ export function StartInCreateAction( content: ( setDontShowAgain((current) => !current), []) - const {patch} = useDocumentOperation(publicId, type) - const {push: pushToast} = useToast() const globalUserId = useGlobalUserId() const workspace = useWorkspace() @@ -62,25 +56,7 @@ export function StartInCreateDialog(props: StartInCreateDialogProps) { window?.open(createUrl, CREATE_LINK_TARGET)?.focus() onLinkingStarted(autoConfirm || dontShowAgain) telemetry.startInCreateAccepted() - - //@todo delete me - setTimeout(() => { - patch.execute( - toMutationPatches([ - set( - { - _id: 'dummy', - userId: 'dummy', - host: 'dummy', - ejected: false, - dataset: 'dummy', - } satisfies CreateLinkMetadata, - ['_create'], - ), - ]), - ) - }, 10000) - }, [patch, createUrl, onLinkingStarted, pushToast, t, dontShowAgain, autoConfirm, telemetry]) + }, [createUrl, onLinkingStarted, pushToast, t, dontShowAgain, autoConfirm, telemetry]) useEffect(() => { if (autoConfirm && createUrl) {