Skip to content

Commit 4e6c26c

Browse files
committed
add toasts for external dataset upload
1 parent b386a28 commit 4e6c26c

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
@@ -6391,12 +6391,14 @@ const effects = {
63916391
const uploadedDatasetId = await reqGateway<number | null>('/uploadDataset', 'POST', body, user, true);
63926392

63936393
if (uploadedDatasetId != null) {
6394+
showSuccessToast('External Dataset Uploaded Successfully');
63946395
return uploadedDatasetId;
63956396
}
63966397

6397-
return null;
6398+
throw Error('External Dataset Upload Failed');
63986399
} catch (e) {
63996400
catchError(e as Error);
6401+
showFailureToast('External Dataset Upload Failed');
64006402
return null;
64016403
}
64026404
},

0 commit comments

Comments
 (0)