diff --git a/extensions/packageManager/src/pages/Library.tsx b/extensions/packageManager/src/pages/Library.tsx index f7b7df5b79..86ea4f355e 100644 --- a/extensions/packageManager/src/pages/Library.tsx +++ b/extensions/packageManager/src/pages/Library.tsx @@ -432,8 +432,8 @@ const Library: React.FC = () => { console.error(err); setApplicationLevelError({ - status: err.response.status, - message: err.response && err.response.data.message ? err.response.data.message : err, + status: err?.response?.status, + message: err?.response?.data?.message || err, summary: strings.importError, }); }