From a819ee9d36b5ae24e9f9e180fe41bdb39e02e341 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Mon, 8 Aug 2022 14:17:40 +0100 Subject: [PATCH] fix: lazy repair of the share modal --- src/components/helpers/sharemodal/ShareModal.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/helpers/sharemodal/ShareModal.jsx b/src/components/helpers/sharemodal/ShareModal.jsx index c5ccf9d4..b301dbc8 100644 --- a/src/components/helpers/sharemodal/ShareModal.jsx +++ b/src/components/helpers/sharemodal/ShareModal.jsx @@ -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 (