Fix TypeScript error: cast unknown to boolean in JSX condition
Some checks failed
Deploy to Server / deploy (push) Failing after 57s

This commit is contained in:
Peter Meier
2026-03-15 14:13:11 +01:00
parent 91ebd151c6
commit ff91a9ff86

View File

@@ -155,7 +155,7 @@ export function ReferenceOrInlineField({
</>
) : (
<div className="rounded border border-gray-200 bg-gray-50/50 p-4">
{(def.collection === "img" || "src" in inlineFields) && inlineValue.src && (
{(def.collection === "img" || "src" in inlineFields) && !!inlineValue.src && (
<div className="mb-3 rounded-lg border border-gray-200 bg-gray-50/50 p-2">
<img
src={