From 7aa26d63816d6549e4816c40c268f814ef1e293f Mon Sep 17 00:00:00 2001 From: Atul Bhatt <38177419+atulbhatt-system32@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:47:15 +0530 Subject: [PATCH] Fix "Turn into" functionality in useCmdk hook --- src/pages/main/hooks/useCmdk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/main/hooks/useCmdk.ts b/src/pages/main/hooks/useCmdk.ts index 46ffff3f..733ddae9 100644 --- a/src/pages/main/hooks/useCmdk.ts +++ b/src/pages/main/hooks/useCmdk.ts @@ -341,7 +341,7 @@ export const useCmdk = ({ cmdkReferenceData, importProject }: IUseCmdk) => { onDownload(); break; case "Turn into": - onTurnInto(); + (activePanel === "stage" || activePanel === "node") && onTurnInto(); break; case "Autosave": onToggleAutoSave();