File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ type Props = {
10
10
versionId : string ;
11
11
} ;
12
12
13
- export const HtmlView = ( { nodeId, locale, versionId } : Props ) => {
13
+ const localesToOverwrite = [ 'uk' , 'ru' ] ;
14
+
15
+ export const HtmlView = ( { nodeId, locale : langLocale , versionId } : Props ) => {
14
16
const [ isLoading , setIsLoading ] = useState ( true ) ;
17
+ const locale = localesToOverwrite . includes ( langLocale ) ? 'no' : langLocale ;
15
18
const htmlPath = `${ xpArchiveConfig . basePath } /html/${ nodeId } /${ locale } /${ versionId } ` ;
16
19
17
20
return (
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ export const ViewSelector = ({
38
38
} ;
39
39
40
40
const relevantViewVariants = getRelevantViewVariants ( isWebpage , hasAttachment ) ;
41
+ if ( ! relevantViewVariants . length || ! selectedView ) {
42
+ return null ;
43
+ }
41
44
42
45
if ( relevantViewVariants . length === 0 ) {
43
46
return null ;
You can’t perform that action at this time.
0 commit comments