From 7d68fa6dd17aaf1273e438274057a70da079ce32 Mon Sep 17 00:00:00 2001 From: Yousif Yassi Date: Fri, 24 Nov 2023 10:18:06 -0500 Subject: [PATCH] fix: DIA-640: [FE] when creating a new dataset and navigating to it tasks request will fire multiple times --- src/stores/Tabs/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/Tabs/store.js b/src/stores/Tabs/store.js index a9eb4890..853dd66d 100644 --- a/src/stores/Tabs/store.js +++ b/src/stores/Tabs/store.js @@ -269,7 +269,7 @@ export const TabStore = types // so we need to take in from the list once again defaultView = self.views[self.views.length - 1]; self.selected = defaultView; - defaultView.reload(); + getRoot(self).SDK.hasInterface('tabs') && defaultView.reload(); }), snapshotFromUrl(viewQueryParam) { @@ -316,7 +316,7 @@ export const TabStore = types self.views.push({ ...newViewSnapshot, saved: true }); const newView = self.views[self.views.length - 1]; - newView.reload(); + root.SDK.hasInterface('tabs') && newView.reload(); self.setSelected(newView); destroy(view);