Skip to content

Commit 4b4c770

Browse files
committed
add toasts for external dataset upload
1 parent abc8456 commit 4b4c770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utilities/effects.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5747,12 +5747,14 @@ const effects = {
57475747
const uploadedDatasetId = await reqGateway<number | null>('/uploadDataset', 'POST', body, user, true);
57485748

57495749
if (uploadedDatasetId != null) {
5750+
showSuccessToast('External Dataset Uploaded Successfully');
57505751
return uploadedDatasetId;
57515752
}
57525753

5753-
return null;
5754+
throw Error('External Dataset Upload Failed');
57545755
} catch (e) {
57555756
catchError(e as Error);
5757+
showFailureToast('External Dataset Upload Failed');
57565758
return null;
57575759
}
57585760
},

0 commit comments

Comments
 (0)