Skip to content

Commit 23d8668

Browse files
committedMar 21, 2025·
inline display name og path
1 parent 4db9bfa commit 23d8668

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎xp-archive/client/content/Content.tsx

+2-10
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,6 @@ export const Content = () => {
124124
return 'Laster...';
125125
};
126126

127-
const getDisplayName = () => {
128-
return data?.json?.displayName || cachedDisplayData.displayName || 'Laster...';
129-
};
130-
131-
const getPath = () => {
132-
return data?.json?._path || cachedDisplayData.path || '';
133-
};
134-
135127
if (!selectedContentId) {
136128
return <EmptyState />;
137129
}
@@ -218,10 +210,10 @@ export const Content = () => {
218210

219211
<div className={style.titleAndUrl}>
220212
<Heading size={'medium'} level={'2'}>
221-
{getDisplayName()}
213+
{data?.json?.displayName || cachedDisplayData.displayName || 'Laster...'}
222214
</Heading>
223215
<div className={style.url}>
224-
<Detail>{getPath()}</Detail>
216+
<Detail>{data?.json?._path || cachedDisplayData.path || ''}</Detail>
225217
</div>
226218
</div>
227219
</div>

0 commit comments

Comments
 (0)