diff --git a/lib/menu-bar/index.tsx b/lib/menu-bar/index.tsx index 12b5ff8d4..ceb402cff 100644 --- a/lib/menu-bar/index.tsx +++ b/lib/menu-bar/index.tsx @@ -69,7 +69,6 @@ export const MenuBar: FunctionComponent = ({ />
{placeholder}
} onClick={() => onNewNote(withoutTags(searchQuery))} title={`New Note • ${CmdOrCtrl}+Shift+I`} diff --git a/lib/state/ui/reducer.ts b/lib/state/ui/reducer.ts index 1a6a1ae03..0820bc272 100644 --- a/lib/state/ui/reducer.ts +++ b/lib/state/ui/reducer.ts @@ -105,6 +105,12 @@ const collection: A.Reducer = ( action ) => { switch (action.type) { + case 'CREATE_NOTE_WITH_ID': { + if (state.type === 'trash') { + return { type: 'all' }; + } + return state; + } case 'OPEN_TAG': return { type: 'tag', tagName: action.tagName }; case 'SELECT_TRASH':