From 5292bedabd0250bd54a02a99538c8041f96bebb2 Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Wed, 24 Mar 2021 14:54:24 +0100 Subject: [PATCH] Switch to newly created history Co-authored-by: Oleg Zharkov --- .../TopToolbar/import-to-history/import-collection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js b/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js index 30aaa0b1fec..b1325b50c9c 100644 --- a/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js +++ b/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js @@ -36,6 +36,7 @@ var ImportCollectionModal = Backbone.View.extend({ }, async createNewHistory(new_history_name) { const { data } = await axios.post(`${getAppRoot()}api/histories`, { name: new_history_name }); + getGalaxyInstance().currHistoryPanel.switchToHistory(data.id); return data; }, showCollectionSelect: function (e) {