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 Nov 21, 2023
1 parent b3fc891 commit 1468cf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/stories/pages/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class Page extends LitElement {
Object.assign(element.style, {
textAlign: "left",
display: "block",
})
});

const progressBar = new ProgressBar();
elements.progress = progressBar;
Expand Down
12 changes: 5 additions & 7 deletions src/renderer/src/stories/pages/guided-mode/options/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" };
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 1468cf2

Please sign in to comment.