Skip to content
Snippets Groups Projects
Commit 83e28b4e authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

fallback to empty value

parent f5be7f75
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!583CE-3399: Fallback to empty value
Pipeline #209881 passed
...@@ -7,7 +7,8 @@ import { ...@@ -7,7 +7,8 @@ import {
GlobalAppBarContext, GlobalAppBarContext,
InternalLink, InternalLink,
useAPIMethod, useAPIMethod,
formatDateAndTime formatDateAndTime,
EmptyValue
} from "@ess-ics/ce-ui-common"; } from "@ess-ics/ce-ui-common";
import { useParams, useNavigate } from "react-router-dom"; import { useParams, useNavigate } from "react-router-dom";
import { Alias } from "./Alias"; import { Alias } from "./Alias";
...@@ -81,9 +82,9 @@ export function RecordDetailsView() { ...@@ -81,9 +82,9 @@ export function RecordDetailsView() {
"Alias for": ( "Alias for": (
<Alias aliases={record?.aliasFor ? [record?.aliasFor] : []} /> <Alias aliases={record?.aliasFor ? [record?.aliasFor] : []} />
), ),
Description: record?.description, Description: record?.description || <EmptyValue />,
Version: record?.iocVersion, Version: record?.iocVersion || <EmptyValue />,
"Record type": record.recordType, "Record type": record.recordType || <EmptyValue />,
Host: record.hostId ? ( Host: record.hostId ? (
<Typography> <Typography>
<InternalLink <InternalLink
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment