Skip to content

Commit

Permalink
Use globals when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Nov 21, 2023
1 parent dd307d7 commit ec587eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class GuidedMetadataPage extends ManagedPage {
const modal = (this.#globalModal = createGlobalFormModal.call(this, {
header: "Global Metadata",
propsToRemove: [...propsToIgnore],
schema: preprocessMetadataSchema(), // Provide HARDCODED global schema for metadata properties (not automatically abstracting across sessions)...
schema: preprocessMetadataSchema(undefined, true), // Provide HARDCODED global schema for metadata properties (not automatically abstracting across sessions)...
hasInstances: true,
mergeFunction: function (globalResolved, globals) {
merge(globalResolved, globals);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class GuidedNewDatasetPage extends Page {

const pages = schemaToPages.call(
this,
preprocessMetadataSchema(),
preprocessMetadataSchema(undefined, true),
["project"],
{ validateEmptyValues: false },
(info) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class GuidedSubjectsPage extends Page {
const modal = (this.#globalModal = createGlobalFormModal.call(this, {
header: "Global Subject Metadata",
key: "Subject",
schema: preprocessMetadataSchema().properties.Subject,
schema: preprocessMetadataSchema(undefined, true).properties.Subject,
validateOnChange: (key, parent, path) => {
return validateOnChange(key, parent, ["Subject", ...path]);
},
Expand Down

0 comments on commit ec587eb

Please sign in to comment.