From b3fc891827b2b0c1956bd57a148f934ed31e868f Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Tue, 21 Nov 2023 15:58:35 -0600 Subject: [PATCH] Update GuidedNewDatasetInfo.js --- .../guided-mode/setup/GuidedNewDatasetInfo.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/renderer/src/stories/pages/guided-mode/setup/GuidedNewDatasetInfo.js b/src/renderer/src/stories/pages/guided-mode/setup/GuidedNewDatasetInfo.js index 6939693bb..f8f070dc6 100644 --- a/src/renderer/src/stories/pages/guided-mode/setup/GuidedNewDatasetInfo.js +++ b/src/renderer/src/stories/pages/guided-mode/setup/GuidedNewDatasetInfo.js @@ -77,8 +77,6 @@ export class GuidedNewDatasetPage extends Page { }; updateForm = () => { - let projectGlobalState = this.info.globalState.project; - if (!projectGlobalState) projectGlobalState = this.info.globalState.project = {}; // Properly clone the schema to produce multiple pages from the project metadata schema const schema = { ...projectMetadataSchema }; @@ -86,18 +84,6 @@ export class GuidedNewDatasetPage extends Page { this.state = merge(global.data.output_locations, structuredClone(this.info.globalState.project)); - const pages = schemaToPages.call(this, globalSchema, ["project"], { validateEmptyValues: false }, (info) => { - info.title = `${info.label} Global Metadata`; - return info; - }); - - pages.forEach((page) => { - page.header = { - subtitle: `Enter any ${page.info.label}-level metadata that can serve as the common default across each experiment session`, - }; - this.addPage(page.info.label, page); - }); - this.form = new JSONSchemaForm({ schema, results: this.state,