From c252a066fce10ed6e99b44f85ac47bc710fbff3b Mon Sep 17 00:00:00 2001 From: Mo Date: Wed, 1 Jun 2022 08:25:44 -0500 Subject: [PATCH] Revert "feat: switch to notes view when creating new note (#1058)" This reverts commit 4aacdda51c5489ccf003c2a4c6480b052895f06d. --- .../UIModels/AppState/ContentListViewState.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/UIModels/AppState/ContentListViewState.ts b/app/assets/javascripts/UIModels/AppState/ContentListViewState.ts index 1feba7e1b..0e9014bb9 100644 --- a/app/assets/javascripts/UIModels/AppState/ContentListViewState.ts +++ b/app/assets/javascripts/UIModels/AppState/ContentListViewState.ts @@ -379,18 +379,15 @@ export class ContentListViewState extends AbstractState { createNewNote = async () => { this.appState.notes.unselectNotes() - this.appState.tags.selected = this.appState.tags.smartViews.find((view) => view.uuid === SystemViewId.AllNotes) - setTimeout(async () => { - let title = `Note ${this.notes.length + 1}` - if (this.isFiltering) { - title = this.noteFilterText - } + let title = `Note ${this.notes.length + 1}` + if (this.isFiltering) { + title = this.noteFilterText + } - await this.appState.notes.createNewNoteController(title) + await this.appState.notes.createNewNoteController(title) - this.appState.noteTags.reloadTags() - }) + this.appState.noteTags.reloadTags() } createPlaceholderNote = () => {