Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: DIA-640: [FE] when creating a new dataset and navigating to it t…
Browse files Browse the repository at this point in the history
…asks request will fire multiple times
  • Loading branch information
yyassi-heartex committed Nov 24, 2023
1 parent f7e188d commit 7d68fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/Tabs/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 7d68fa6

Please sign in to comment.