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 16, 2024
1 parent b722ac5 commit 2a40b38
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { header } from "../../../forms/utils";

const projectMetadataSchema = merge(projectGlobalSchema, projectGeneralSchema);

const skipError = (message) => (message.includes("requires") && message.includes("name"));
const skipError = (message) => message.includes("requires") && message.includes("name");

export class GuidedNewDatasetPage extends Page {
constructor(...args) {
Expand All @@ -37,7 +37,7 @@ export class GuidedNewDatasetPage extends Page {
await this.form.validate().catch((error) => {
if (skipError(error.message)) return;
throw error;
})
});

// Check validity of project name
const name = this.state.name;
Expand Down Expand Up @@ -102,7 +102,7 @@ export class GuidedNewDatasetPage extends Page {
onThrow: function (message) {
if (skipError(message)) return;
onThrow(message);
}
},
});

return this.form;
Expand Down

0 comments on commit 2a40b38

Please sign in to comment.