Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default function SemanticLink(props: SemanticLinkProps) {

return (
<Link component='button' {...linkComponentProps} {...restProps} onClick={openLinkClick} data-testid={testId}>
{text}
{text || '--'}
</Link>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function View(props: PropsWithChildren<ViewProps>) {
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;
}

Expand Down