File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
apps/desktop/src/components/main/body/changelog Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,17 @@ function useChangelogContent(version: string) {
186186 return ;
187187 }
188188
189- changelogFiles [ key ] ( ) . then ( ( raw ) => {
190- const markdown = stripImageLine ( stripFrontmatter ( raw as string ) ) ;
191- const json = md2json ( markdown ) ;
192- setContent ( addEmptyParagraphsBeforeHeaders ( json ) ) ;
193- setLoading ( false ) ;
194- } ) ;
189+ changelogFiles [ key ] ( )
190+ . then ( ( raw ) => {
191+ const markdown = stripImageLine ( stripFrontmatter ( raw as string ) ) ;
192+ const json = md2json ( markdown ) ;
193+ setContent ( addEmptyParagraphsBeforeHeaders ( json ) ) ;
194+ setLoading ( false ) ;
195+ } )
196+ . catch ( ( ) => {
197+ setContent ( null ) ;
198+ setLoading ( false ) ;
199+ } ) ;
195200 } , [ version ] ) ;
196201
197202 return { content, loading } ;
You can’t perform that action at this time.
0 commit comments