Skip to content

Commit

Permalink
feat: patch cross-account to selected account
Browse files Browse the repository at this point in the history
  • Loading branch information
Kav91 committed Dec 17, 2023
1 parent eaacb00 commit 3f4e1e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "nr1-maturity",
"description": "New Relic Account Maturity App",
"version": "0.14.0-beta-9",
"version": "0.14.0-beta-11",
"scripts": {
"start": "nr1 nerdpack:serve",
"eslint-check": "eslint nerdlets/ src/",
Expand Down
6 changes: 6 additions & 0 deletions src/context/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,19 @@ export function useProvideData(props) {

deleteOrphanedReports(viewConfigs, viewHistory, accountId);

let view = dataState.view;
if (viewConfigs.length > 1) {
view = { page: 'ViewList' };
}

setDataState({
selectedAccountId: accountId,
accounts,
agentReleases,
dataDictionary,
viewConfigs,
fetchingData: false,
view,
});
}, [props.accountId]);

Expand Down

0 comments on commit 3f4e1e9

Please sign in to comment.