diff --git a/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx b/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx index 57bc0ccd..b460d1ee 100644 --- a/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx +++ b/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx @@ -202,7 +202,7 @@ export default function SemanticLink(props: SemanticLinkProps) { return ( - {text} + {text || '--'} ); } diff --git a/packages/react-sdk-components/src/components/infra/View/View.tsx b/packages/react-sdk-components/src/components/infra/View/View.tsx index 9b66a6ef..bb1fb280 100644 --- a/packages/react-sdk-components/src/components/infra/View/View.tsx +++ b/packages/react-sdk-components/src/components/infra/View/View.tsx @@ -56,7 +56,7 @@ export default function View(props: PropsWithChildren) { const localeUtils = PCore.getLocaleUtils(); const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible - if (isEmbeddedDataView && showLabel === undefined) { + if ((isEmbeddedDataView && showLabel === undefined) || (template === 'DataReference' && inheritedProps.showLabel === undefined)) { showLabel = true; }