diff --git a/src/renderer/src/stories/pages/Page.js b/src/renderer/src/stories/pages/Page.js index a0aee18bc..8207918c2 100644 --- a/src/renderer/src/stories/pages/Page.js +++ b/src/renderer/src/stories/pages/Page.js @@ -170,7 +170,7 @@ export class Page extends LitElement { Object.assign(element.style, { textAlign: "left", display: "block", - }) + }); const progressBar = new ProgressBar(); elements.progress = progressBar; diff --git a/src/renderer/src/stories/pages/guided-mode/options/utils.js b/src/renderer/src/stories/pages/guided-mode/options/utils.js index 238681e36..83bef4acc 100644 --- a/src/renderer/src/stories/pages/guided-mode/options/utils.js +++ b/src/renderer/src/stories/pages/guided-mode/options/utils.js @@ -23,12 +23,10 @@ export const openProgressSwal = (options, callback) => { }; export const run = async (url, payload, options = {}) => { + let internalSwal; - let internalSwal - - if (options.swal === false) {} - else if (!options.swal || options.swal === true) { - + if (options.swal === false) { + } else if (!options.swal || options.swal === true) { if (!("showCancelButton" in options)) { options.showCancelButton = true; options.customClass = { actions: "swal-conversion-actions" }; @@ -40,12 +38,12 @@ export const run = async (url, payload, options = {}) => { signal: cancelController.signal, }; - const popup = internalSwal = await openProgressSwal(options, (result) => { + const popup = (internalSwal = await openProgressSwal(options, (result) => { if (!result.isConfirmed) cancelController.abort(); }).then(async (swal) => { if (options.onOpen) await options.onOpen(swal); return swal; - }); + })); const element = popup.getHtmlContainer(); const actions = popup.getActions(); 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 f8f070dc6..5072e3799 100644 --- a/src/renderer/src/stories/pages/guided-mode/setup/GuidedNewDatasetInfo.js +++ b/src/renderer/src/stories/pages/guided-mode/setup/GuidedNewDatasetInfo.js @@ -77,7 +77,6 @@ export class GuidedNewDatasetPage extends Page { }; updateForm = () => { - // Properly clone the schema to produce multiple pages from the project metadata schema const schema = { ...projectMetadataSchema }; schema.properties = { ...schema.properties };