From c78fd5442eb75b097bf74b909f5dfaec4882eaef Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 11 Jul 2022 14:47:05 +0200 Subject: [PATCH] fix undefined --- libs/remix-ui/panel/src/lib/plugins/panel-header.tsx | 10 +++++----- .../src/lib/components/ActivePluginCard.tsx | 2 +- .../src/lib/components/InactivePluginCard.tsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx index 9e249aa295..8c19d32fdf 100644 --- a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx +++ b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx @@ -38,21 +38,21 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
- {plugin?.profile.author && + {plugin?.profile?.author && plugin.profile.author } - {plugin?.profile.maintainedBy && + {plugin?.profile?.maintainedBy && plugin.profile.maintainedBy } - {plugin?.profile.documentation && + {plugin?.profile?.documentation && - + } - {plugin?.profile.description && + {plugin?.profile?.description && plugin?.profile.description } diff --git a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx index 6a9b604907..47e35a55db 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx @@ -19,7 +19,7 @@ function ActivePluginCard ({
{ profile.displayName || profile.name } - { profile.maintainedBy.toLowerCase() == "remix" && + { profile?.maintainedBy?.toLowerCase() == "remix" && } { profile.documentation && diff --git a/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx b/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx index 018b8ed432..35272cb5d3 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx @@ -22,7 +22,7 @@ function InactivePluginCard ({
{ profile.displayName || profile.name } - { profile.maintainedBy.toLowerCase() == "remix" && + { profile?.maintainedBy?.toLowerCase() == "remix" && } { profile.documentation &&