Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 3, 2024
1 parent 85080a1 commit bdcee0c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/renderer/src/stories/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,14 @@ export class Dashboard extends LitElement {
if (!state) state = globalState.sections[section] = { open: false, active: false, pages: {} };

let pageState = state.pages[id];
if (!pageState) pageState = state.pages[id] = {
visited: false,
active: false,
saved: false,
pageLabel: page.info.label,
pageTitle: page.info.title,
};
if (!pageState)
pageState = state.pages[id] = {
visited: false,
active: false,
saved: false,
pageLabel: page.info.label,
pageTitle: page.info.title,
};

info.states = pageState;

Expand Down

0 comments on commit bdcee0c

Please sign in to comment.