fix undefined

pull/2557/head
filip mertens 2 years ago
parent f4eff3c5c9
commit c78fd5442e
  1. 10
      libs/remix-ui/panel/src/lib/plugins/panel-header.tsx
  2. 2
      libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
  3. 2
      libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx

@ -38,21 +38,21 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
</div>
</div>
<div className={`bg-light p-3 pt-1 border-bottom flex-column ${toggleExpander ? "d-flex" : "d-none"}`}>
{plugin?.profile.author && <span className="d-flex flex-row align-items-center">
{plugin?.profile?.author && <span className="d-flex flex-row align-items-center">
<label className="mb-0 pr-2">Author:</label>
<span> plugin.profile.author </span>
</span>}
{plugin?.profile.maintainedBy && <span className="d-flex flex-row align-items-center">
{plugin?.profile?.maintainedBy && <span className="d-flex flex-row align-items-center">
<label className="mb-0 pr-2">Maintained by:</label>
<span> plugin.profile.maintainedBy</span>
</span>}
{plugin?.profile.documentation && <span className="d-flex flex-row align-items-center">
{plugin?.profile?.documentation && <span className="d-flex flex-row align-items-center">
<label className="mb-0 pr-2">Documentation:</label>
<span>
<a href={plugin.profile.documentation} className="titleInfo mb-2" title="link to documentation" target="_blank" rel="noreferrer"><i aria-hidden="true" className="fas fa-book"></i></a>
<a href={plugin.profile?.documentation} className="titleInfo mb-2" title="link to documentation" target="_blank" rel="noreferrer"><i aria-hidden="true" className="fas fa-book"></i></a>
</span>
</span>}
{plugin?.profile.description && <span className="d-flex flex-row align-items-center">
{plugin?.profile?.description && <span className="d-flex flex-row align-items-center">
<label className="mb-0 pr-2">Description:</label>
<span> plugin?.profile.description</span>
</span>}

@ -19,7 +19,7 @@ function ActivePluginCard ({
<h6 className="remixui_displayName plugin-name">
<div>
{ profile.displayName || profile.name }
{ profile.maintainedBy.toLowerCase() == "remix" &&
{ profile?.maintainedBy?.toLowerCase() == "remix" &&
<i aria-hidden="true" className="px-1 text-success fas fa-check" title="Maintained by Remix"></i>
}
{ profile.documentation &&

@ -22,7 +22,7 @@ function InactivePluginCard ({
<h6 className="remixui_displayName plugin-name">
<div>
{ profile.displayName || profile.name }
{ profile.maintainedBy.toLowerCase() == "remix" &&
{ profile?.maintainedBy?.toLowerCase() == "remix" &&
<i aria-hidden="true" className="px-1 text-success fas fa-check" title="Verified by Remix"></i>
}
{ profile.documentation &&

Loading…
Cancel
Save