From 09cfaeb9c453d09095028a9a6e85c8481611b04f Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 23 Aug 2022 22:32:27 +0200 Subject: [PATCH] focus autocomplete on new tab even if there are workspaces, fixes #3083 --- src/public/app/widgets/type_widgets/empty.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/public/app/widgets/type_widgets/empty.js b/src/public/app/widgets/type_widgets/empty.js index 6e4cf8399..0d5c99118 100644 --- a/src/public/app/widgets/type_widgets/empty.js +++ b/src/public/app/widgets/type_widgets/empty.js @@ -83,10 +83,8 @@ export default class EmptyTypeWidget extends TypeWidget { ); } - if (workspaceNotes.length === 0) { - this.$autoComplete - .trigger('focus') - .trigger('select'); - } + this.$autoComplete + .trigger('focus') + .trigger('select'); } }