Fix TypeScript error: cast unknown to boolean in JSX condition
Some checks failed
Deploy to Server / deploy (push) Failing after 57s
Some checks failed
Deploy to Server / deploy (push) Failing after 57s
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user