File tree 1 file changed +2
-10
lines changed
xp-archive/client/content
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,6 @@ export const Content = () => {
124
124
return 'Laster...' ;
125
125
} ;
126
126
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
-
135
127
if ( ! selectedContentId ) {
136
128
return < EmptyState /> ;
137
129
}
@@ -218,10 +210,10 @@ export const Content = () => {
218
210
219
211
< div className = { style . titleAndUrl } >
220
212
< Heading size = { 'medium' } level = { '2' } >
221
- { getDisplayName ( ) }
213
+ { data ?. json ?. displayName || cachedDisplayData . displayName || 'Laster...' }
222
214
</ Heading >
223
215
< div className = { style . url } >
224
- < Detail > { getPath ( ) } </ Detail >
216
+ < Detail > { data ?. json ?. _path || cachedDisplayData . path || '' } </ Detail >
225
217
</ div >
226
218
</ div >
227
219
</ div >
You can’t perform that action at this time.
0 commit comments