File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
app/components/Analysis/components/Summary Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,8 @@ import { t } from "@app/locale"
1212import { useAnalysisSite } from "../../context"
1313import siteService from "@service/site-service"
1414
15- const EMPTY_DESC = t ( msg => msg . analysis . common . emptyDesc )
16-
1715function renderChildren ( site : timer . site . SiteInfo ) {
18- if ( ! site ) return < h1 class = "site-alias" > { EMPTY_DESC } </ h1 >
16+ if ( ! site ) return < h1 class = "site-alias" > { t ( msg => msg . analysis . common . emptyDesc ) } </ h1 >
1917
2018 const { iconUrl, alias } = site
2119 const label = labelOfHostInfo ( site )
Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ class SiteService {
9292 /**
9393 * @since 0.9.0
9494 */
95- async get ( host : timer . site . SiteKey ) : Promise < timer . site . SiteInfo | undefined > {
96- return await siteDatabase . get ( host )
95+ async get ( siteKey : timer . site . SiteKey ) : Promise < timer . site . SiteInfo | undefined > {
96+ const info = await siteDatabase . get ( siteKey )
97+ return info || siteKey
9798 }
9899}
99100
You can’t perform that action at this time.
0 commit comments