Skip to content

Commit 104a009

Browse files
committed
Fix minor props issue
1 parent 4430d7a commit 104a009

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/frontend/features/library/components/card-components.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ export function CardTitle(props: CardTitleProps) {
154154
smallThumbnailUrl,
155155
largeThumbnailUrl,
156156
thumbnailTarget,
157-
buildStatusBadge
157+
buildStatusBadge,
158+
disabled = false,
159+
showHiddenTag = false
158160
} = props;
159-
const disabled = props.disabled ?? false;
160-
const isHidden = props.showHiddenTag ?? false;
161161

162162
let cardTitle: ReactNode;
163163
if (searchHit) {
@@ -217,7 +217,7 @@ export function CardTitle(props: CardTitleProps) {
217217
{buildStatusBadge}
218218
{/* After the badge: toggling visibility would otherwise shift the
219219
badge, dragging its open hover card out from under the cursor. */}
220-
{isHidden && (
220+
{showHiddenTag && (
221221
<Box
222222
component={EyeSlash}
223223
size={IconSize.SMALL}

0 commit comments

Comments
 (0)