Skip to content

Commit

Permalink
Ensure default data view
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed May 24, 2022
1 parent fdc03d2 commit ba9bdeb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ export const useDashboardAppState = ({
return;
}

const defaultDataView = await dataViews.getDefaultDataView();

if (!defaultDataView) {
return;
}

/**
* Load and unpack state from dashboard saved object.
*/
Expand Down

0 comments on commit ba9bdeb

Please sign in to comment.