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 Sep 13, 2023
1 parent ea8d277 commit a56b693
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/renderer/src/stories/pages/uploads/UploadsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function uploadToDandi(info) {
}

const result = await run(
type ? `upload/${type}` : 'upload',
type ? `upload/${type}` : "upload",
{
...info,
staging: isStaging(info.dandiset_id), // Automatically detect staging IDs
Expand All @@ -42,18 +42,18 @@ export async function uploadToDandi(info) {
).catch((e) => {
notyf.open({
type: "error",
message: e.message
})
message: e.message,
});
throw e;
});

if (result)
notyf.open({
type: "success",
message: `${info.project ?? info.nwb_folder_path} successfully uploaded to Dandiset ${info.dandiset_id}`,
});

if (result) notyf.open({
type: "success",
message: `${info.project ?? info.nwb_folder_path} successfully uploaded to Dandiset ${info.dandiset_id}`,
});

return result
return result;
}

export class UploadsPage extends Page {
Expand Down

0 comments on commit a56b693

Please sign in to comment.