Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8747dbd

Browse files
Fix issue where if template did not exist, the app would crash
1 parent 860e750 commit 8747dbd

File tree

1 file changed

+1
-1
lines changed
  • client/src/components/Upload/Initial

1 file changed

+1
-1
lines changed

client/src/components/Upload/Initial/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Initial({ onError, onUpload, templateId }) {
3232
const { data } = await apiClient.get(url);
3333
window.location = data.url;
3434
} catch (error) {
35-
if (onError) onError(error.toJSON());
35+
if (onError) onError(error);
3636
}
3737
};
3838

0 commit comments

Comments
 (0)