Skip to content

Commit

Permalink
Set dashboard container after defining functions
Browse files Browse the repository at this point in the history
renderEmpty was not being set prior to the current
container was being dispatched.

Moved the set state to after the functions are defined.

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Jul 11, 2023
1 parent bd72786 commit c3030a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const useDashboardAppAndGlobalState = ({
savedDashboard: savedDashboardInstance,
appState: stateContainer,
});
setCurrentContainer(dashboardContainer);

if (!dashboardContainer) {
return;
Expand Down Expand Up @@ -196,6 +195,8 @@ export const useDashboardAppAndGlobalState = ({
stopSyncingDashboardContainerOutputs();
subscriptions.unsubscribe();
};

setCurrentContainer(dashboardContainer);
};

getDashboardContainer();
Expand Down

0 comments on commit c3030a8

Please sign in to comment.