We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ede066 commit b7eb4c9Copy full SHA for b7eb4c9
xp-archive/client/content/Content.tsx
@@ -55,9 +55,9 @@ export const Content = () => {
55
<div className={style.content}>
56
<div className={style.top}>
57
<div>
58
- <Detail spacing>{data?.json._path}</Detail>
+ <Detail spacing>{data?.json._path ?? ''}</Detail>
59
<Heading size={'medium'} level={'2'} spacing>
60
- {data?.json.displayName}
+ {data?.json.displayName ?? ''}
61
</Heading>
62
<ViewSelector
63
selectedView={selectedView}
xp-archive/client/viewSelector/ViewSelector.tsx
@@ -39,6 +39,10 @@ export const ViewSelector = ({
39
40
const relevantViewVariants = getRelevantViewVariants(isWebpage, hasAttachment);
41
42
+ if (relevantViewVariants.length === 0) {
43
+ return null;
44
+ }
45
+
46
return (
47
<ToggleGroup
48
className={style.datatheme}
0 commit comments