File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ import getDownloadSnippets from '@/next-data/downloadSnippets';
77import getReleaseData from '@/next-data/releaseData' ;
88import { defaultLocale } from '@/next.locales.mjs' ;
99import { ReleaseProvider , ReleasesProvider } from '@/providers/releaseProvider' ;
10- import type { DownloadSnippet } from '@/types' ;
1110
1211// By default the translated languages do not contain all the download snippets
1312// 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 ) ;
1514
1615const WithDownloadSection : FC < PropsWithChildren > = async ( { children } ) => {
17- fallbackSnippets ??= await getDownloadSnippets ( defaultLocale . code ) ;
18-
1916 const locale = await getLocale ( ) ;
2017 const releases = await getReleaseData ( ) ;
2118 const snippets = await getDownloadSnippets ( locale ) ;
You can’t perform that action at this time.
0 commit comments