From d9095517cdd763e51ad1783a928770a266a9d48b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:25:42 +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/JSONSchemaForm.js | 12 ++---------- .../pages/guided-mode/data/GuidedPathExpansion.js | 3 ++- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/renderer/src/stories/JSONSchemaForm.js b/src/renderer/src/stories/JSONSchemaForm.js index 670ea49b8..327a1afaa 100644 --- a/src/renderer/src/stories/JSONSchemaForm.js +++ b/src/renderer/src/stories/JSONSchemaForm.js @@ -225,7 +225,6 @@ document.addEventListener("dragover", (dragEvent) => { dragEvent.stopPropagation(); }); - export class JSONSchemaForm extends LitElement { static get styles() { return css([componentCSS]); @@ -942,9 +941,7 @@ export class JSONSchemaForm extends LitElement { type: "warning", missing: true, }); - } - else { - + } else { const rowName = pathToValidate.slice(-1)[0]; const isRow = typeof rowName === "number"; @@ -1021,9 +1018,7 @@ export class JSONSchemaForm extends LitElement { return true; } else { - if (this.validateEmptyValues) { - // Add new invalid classes and errors input.classList.add("invalid"); @@ -1033,7 +1028,6 @@ export class JSONSchemaForm extends LitElement { [...path, name] ); - updatedErrors.forEach((info) => (onError ? "" : this.#addMessage(localPath, info, "errors"))); } // element.title = errors.map((info) => info.message).join("\n"); // Set all errors to show on hover @@ -1374,7 +1368,6 @@ export class JSONSchemaForm extends LitElement { }; #registerRequirements = (schema, requirements = {}, acc = this.#requirements, path = []) => { - if (!schema) return; const isItem = (schema) => schema.items && schema.items.properties; @@ -1420,7 +1413,6 @@ export class JSONSchemaForm extends LitElement { } render() { - this.#updateRendered(); // Create a new promise to check on the rendered state this.#resetLoadState(); @@ -1434,7 +1426,7 @@ export class JSONSchemaForm extends LitElement { // // Delete extraneous results // this.#deleteExtraneousResults(this.results, this.schema); - this.#requirements = {} + this.#requirements = {}; this.#registerRequirements(this.schema, this.required); return html` diff --git a/src/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js b/src/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js index 28c645627..72bb37569 100644 --- a/src/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js +++ b/src/renderer/src/stories/pages/guided-mode/data/GuidedPathExpansion.js @@ -332,7 +332,8 @@ export class GuidedPathExpansionPage extends Page { } if (Object.keys(finalStructure).length === 0) { - const message = "Please configure at least one interface.
Otherwise, revisit Pipeline Workflow to update your configuration."; + const message = + "Please configure at least one interface.
Otherwise, revisit Pipeline Workflow to update your configuration."; this.#notification = this.notify(message, "error"); throw message; }