Skip to content

Commit

Permalink
prettier...
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Jun 27, 2024
1 parent ab89d93 commit 82dc1cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/static/src/app/store/model/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ const compileModelAndUpdateStore = (context: ActionContext<ModelState, AppState>

// Retain variable selections. Newly added variables will be selected by default in the first graph
const selectedVariables = variables.filter((s) => !rootState.graphs.config[0].unselectedVariables.includes(s));
dispatch(`graphs/${GraphsAction.UpdateSelectedVariables}`,
{ graphIndex: 0, selectedVariables }, { root: true });
dispatch(
`graphs/${GraphsAction.UpdateSelectedVariables}`,
{ graphIndex: 0, selectedVariables },
{ root: true }
);

if (state.compileRequired) {
commit(ModelMutation.SetCompileRequired, false);
Expand Down

0 comments on commit 82dc1cc

Please sign in to comment.