diff --git a/src/react-server/PrismicLink.tsx b/src/react-server/PrismicLink.tsx index 86107bc..3ef6ddb 100644 --- a/src/react-server/PrismicLink.tsx +++ b/src/react-server/PrismicLink.tsx @@ -136,7 +136,9 @@ export const PrismicLink = React.forwardRef(function PrismicLink< )}`, ); } else if ( - Object.keys(field).length > 1 && + ("text" in field + ? Object.keys(field).length > 2 + : Object.keys(field).length > 1) && !("url" in field || "uid" in field || "id" in field) ) { console.warn(