mirror of
https://github.com/mue/mue.git
synced 2026-06-12 03:28:46 +02:00
fix: lazy repair of the share modal
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user