File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ import getDownloadSnippets from '@/next-data/downloadSnippets';
7
7
import getReleaseData from '@/next-data/releaseData' ;
8
8
import { defaultLocale } from '@/next.locales.mjs' ;
9
9
import { ReleaseProvider , ReleasesProvider } from '@/providers/releaseProvider' ;
10
- import type { DownloadSnippet } from '@/types' ;
11
10
12
11
// By default the translated languages do not contain all the download snippets
13
12
// Hence we always merge any translated snippet with the fallbacks for missing snippets
14
- let fallbackSnippets : Array < DownloadSnippet > ;
13
+ const fallbackSnippets = await getDownloadSnippets ( defaultLocale . code ) ;
15
14
16
15
const WithDownloadSection : FC < PropsWithChildren > = async ( { children } ) => {
17
- fallbackSnippets ??= await getDownloadSnippets ( defaultLocale . code ) ;
18
-
19
16
const locale = await getLocale ( ) ;
20
17
const releases = await getReleaseData ( ) ;
21
18
const snippets = await getDownloadSnippets ( locale ) ;
You can’t perform that action at this time.
0 commit comments