fix: lazy repair of the share modal

This commit is contained in:
David Ralph
2022-08-08 14:17:40 +01:00
parent bcde05d87d
commit a819ee9d36

View File

@@ -17,8 +17,13 @@ export default function ShareModal({ modalClose, data }) {
toast(getMessage('modals.share.copy_link'));
};
if (!data.data) {
data.data.name = 'this image';
// look into what's wrong with this
try {
if (!data.data) {
data.data.name = 'this image';
}
} catch (e) {
}
return (