From 400ced50cfffecf05cc2b5ab75afb19498eabbac Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:50:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/renderer/src/globals.js | 2 +- .../src/stories/pages/guided-mode/data/GuidedStructure.js | 6 +++--- src/renderer/utils/url.js | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/globals.js b/src/renderer/src/globals.js index 89dc5af42..b235577dd 100644 --- a/src/renderer/src/globals.js +++ b/src/renderer/src/globals.js @@ -12,4 +12,4 @@ export let runOnLoad = (fn) => { // Base Request URL for Python Server export const baseUrl = `http://127.0.0.1:${port}`; -export const supportedInterfaces = guideGlobalMetadata.supported_interfaces; \ No newline at end of file +export const supportedInterfaces = guideGlobalMetadata.supported_interfaces; diff --git a/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js b/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js index 410d7c9fb..c735b6161 100644 --- a/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js +++ b/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js @@ -8,7 +8,7 @@ import { Search } from "../../../Search.js"; import { Modal } from "../../../Modal"; import { List } from "../../../List"; -const defaultEmptyMessage = "No interfaces selected" +const defaultEmptyMessage = "No interfaces selected"; export class GuidedStructurePage extends Page { constructor(...args) { @@ -35,7 +35,7 @@ export class GuidedStructurePage extends Page { list = new List({ emptyMessage: defaultEmptyMessage, - onChange: () => this.unsavedUpdates = true + onChange: () => (this.unsavedUpdates = true), }); addButton = new Button(); @@ -96,7 +96,7 @@ export class GuidedStructurePage extends Page { ) .catch((e) => console.error(e)); - this.list.emptyMessage = defaultEmptyMessage + this.list.emptyMessage = defaultEmptyMessage; for (const [key, name] of Object.entries(interfaces)) { let found = this.search.options?.find((o) => o.value === name); diff --git a/src/renderer/utils/url.js b/src/renderer/utils/url.js index 9ed9089dc..502e427f9 100644 --- a/src/renderer/utils/url.js +++ b/src/renderer/utils/url.js @@ -1,4 +1,3 @@ - export function updateURLParams(paramsToUpdate) { const params = new URLSearchParams(location.search); for (let key in paramsToUpdate) {