From 0d8ebaf968a11cb445aeb99d2e3fbe6e6dba890c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 22:20:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../src/stories/pages/guided-mode/options/GuidedUpload.js | 3 ++- src/renderer/src/stories/pages/uploads/UploadsPage.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js b/src/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js index 00970f13b..f3647e701 100644 --- a/src/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js +++ b/src/renderer/src/stories/pages/guided-mode/options/GuidedUpload.js @@ -73,7 +73,8 @@ export class GuidedUploadPage extends Page { .then(({ physical, logical }) => { dandiUploadSchema.properties.number_of_jobs.max = physical; dandiUploadSchema.properties.number_of_threads.max = logical / physical; - }).catch(() => {}); + }) + .catch(() => {}); return (this.form = new JSONSchemaForm({ schema: dandiUploadSchema, diff --git a/src/renderer/src/stories/pages/uploads/UploadsPage.js b/src/renderer/src/stories/pages/uploads/UploadsPage.js index 09a73f50a..68bbc12da 100644 --- a/src/renderer/src/stories/pages/uploads/UploadsPage.js +++ b/src/renderer/src/stories/pages/uploads/UploadsPage.js @@ -171,7 +171,6 @@ export class UploadsPage extends Page { await fetch(new URL("cpus", baseUrl)) .then((res) => res.json()) .then(({ physical, logical }) => { - dandiSchema.properties.number_of_jobs.max = physical; dandiSchema.properties.number_of_threads.max = logical / physical; })