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 Mar 25, 2024
1 parent 6207b7d commit d909551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
12 changes: 2 additions & 10 deletions src/renderer/src/stories/JSONSchemaForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ document.addEventListener("dragover", (dragEvent) => {
dragEvent.stopPropagation();
});


export class JSONSchemaForm extends LitElement {
static get styles() {
return css([componentCSS]);
Expand Down Expand Up @@ -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";

Expand Down Expand Up @@ -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");

Expand All @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1420,7 +1413,6 @@ export class JSONSchemaForm extends LitElement {
}

render() {

this.#updateRendered(); // Create a new promise to check on the rendered state

this.#resetLoadState();
Expand All @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ export class GuidedPathExpansionPage extends Page {
}

if (Object.keys(finalStructure).length === 0) {
const message = "Please configure at least one interface. <br/><small>Otherwise, revisit <b>Pipeline Workflow</b> to update your configuration.</small>";
const message =
"Please configure at least one interface. <br/><small>Otherwise, revisit <b>Pipeline Workflow</b> to update your configuration.</small>";
this.#notification = this.notify(message, "error");
throw message;
}
Expand Down

0 comments on commit d909551

Please sign in to comment.