diff --git a/ElectronClient/gui/MainScreen/commands/moveToFolder.ts b/ElectronClient/gui/MainScreen/commands/moveToFolder.ts index 55fdf4210..636883e24 100644 --- a/ElectronClient/gui/MainScreen/commands/moveToFolder.ts +++ b/ElectronClient/gui/MainScreen/commands/moveToFolder.ts @@ -42,5 +42,13 @@ export const runtime = (comp:any):CommandRuntime => { }, }); }, + isEnabled: (props:any):boolean => { + return !!props.noteIds.length; + }, + mapStateToProps: (state:any):any => { + return { + noteIds: state.selectedNoteIds, + }; + }, }; };