Skip to content

Commit

Permalink
Fix "Turn into" functionality in useCmdk hook
Browse files Browse the repository at this point in the history
  • Loading branch information
atulbhatt-system32 committed Dec 21, 2023
1 parent f46b3db commit 7aa26d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/main/hooks/useCmdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7aa26d6

Please sign in to comment.