Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

do not show empty brackets when no asset resource is selected #9186

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ export const AssetsPreviewPanel = React.forwardRef(({ hideHeading }: Props, ref)
<>
{!hideHeading && (
<div style={assetHeadingStyles as React.CSSProperties}>
{`${previewPanel.resourceProps.name} (${previewPanel.resourceProps.size})`}{' '}
{previewPanel.resourceProps.name &&
previewPanel.resourceProps.size &&
`${previewPanel.resourceProps.name} (${previewPanel.resourceProps.size})`}
</div>
)}
{previewPanel.PreviewSource && <previewPanel.PreviewSource resourceProps={previewPanel.resourceProps} />}
Expand Down