fix: error message null

This commit is contained in:
GyDi 2023-05-19 10:53:11 +08:00 committed by GitHub
parent 78fc47a9c4
commit fb653ff99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
fileDataRef.current = null; fileDataRef.current = null;
props.onChange(); props.onChange();
} catch (err: any) { } catch (err: any) {
Notice.error(err.message); Notice.error(err.message || err.toString());
} }
}) })
); );