From cdad7edf75b6d9f985f224b3f4e900250821deba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 20:28:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/renderer/src/stories/Dashboard.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/stories/Dashboard.js b/src/renderer/src/stories/Dashboard.js index 8f0cc5acb..e56b50273 100644 --- a/src/renderer/src/stories/Dashboard.js +++ b/src/renderer/src/stories/Dashboard.js @@ -256,7 +256,6 @@ export class Dashboard extends LitElement { const { skipped } = this.subSidebar.sections[info.section]?.pages?.[info.id] ?? {}; if (skipped) { - if (isStorybook) return; // Do not skip on storybook // Run skip functions @@ -268,7 +267,6 @@ export class Dashboard extends LitElement { if (previous && previous.info.previous === this.page) await this.page.onTransition(-1); else await this.page.onTransition(1); } - }); } @@ -330,10 +328,10 @@ export class Dashboard extends LitElement { if (typeof transition === "number") { const info = this.page.info; const sign = Math.sign(transition); - if (sign === 1) transition = info.next.info.id + if (sign === 1) transition = info.next.info.id; else if (sign === -1) transition = (info.previous ?? info.parent).info.id; // Default to back in time } - + this.setAttribute("activePage", transition); return promise;