diff --git a/apps/admin-x-settings/src/components/settings/site/theme/ThemeInstalledModal.tsx b/apps/admin-x-settings/src/components/settings/site/theme/ThemeInstalledModal.tsx index 1c3c4aa97a..53bad6185d 100644 --- a/apps/admin-x-settings/src/components/settings/site/theme/ThemeInstalledModal.tsx +++ b/apps/admin-x-settings/src/components/settings/site/theme/ThemeInstalledModal.tsx @@ -45,7 +45,7 @@ const ThemeInstalledModal: React.FC<{ const handleError = useHandleError(); let errorPrompt = null; - if (installedTheme.gscan_errors) { + if (installedTheme && installedTheme.gscan_errors) { errorPrompt =
Highly recommended to fix, functionality could be restricted} title="Errors"> {installedTheme.gscan_errors?.map(error => )} @@ -54,7 +54,7 @@ const ThemeInstalledModal: React.FC<{ } let warningPrompt = null; - if (installedTheme.warnings) { + if (installedTheme && installedTheme.warnings) { warningPrompt =
{installedTheme.warnings?.map(warning => )}