From d181705f3c00a640be39ea5b5f3e3d53b589801b Mon Sep 17 00:00:00 2001 From: Naumov Alexey Date: Tue, 17 May 2022 16:37:01 +0200 Subject: [PATCH] fix(plugin-resource-manager): CB-2019 move tab initialization --- .../src/PluginBootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/packages/plugin-sql-editor-navigation-tab-resource/src/PluginBootstrap.ts b/webapp/packages/plugin-sql-editor-navigation-tab-resource/src/PluginBootstrap.ts index c491db2fe8..61a15ecca2 100644 --- a/webapp/packages/plugin-sql-editor-navigation-tab-resource/src/PluginBootstrap.ts +++ b/webapp/packages/plugin-sql-editor-navigation-tab-resource/src/PluginBootstrap.ts @@ -61,6 +61,7 @@ export class PluginBootstrap extends Bootstrap { }, handler: async (context, action) => { const state = context.get(DATA_CONTEXT_SQL_EDITOR_STATE); + const tab = this.navigationTabsService.currentTab; if (action === ACTION_SAVE) { const tabName = this.sqlEditorTabService.getName(state); @@ -70,7 +71,6 @@ export class PluginBootstrap extends Bootstrap { if (result != DialogueStateResult.Rejected && result !== DialogueStateResult.Resolved) { try { - const tab = this.navigationTabsService.currentTab; await this.projectsResource.load(); const scriptName = `${result.trim()}.${SCRIPT_EXTENSION}`; const folder = createPath([RESOURCES_NODE_PATH, this.projectsResource.userProject?.name]);