Enable the lang of the term to be undefined
This commit is contained in:
parent
33460afaf2
commit
485ca28a29
@ -10,7 +10,7 @@ import { KcContext } from "../KcContext";
|
||||
const obs = createStatefulObservable<
|
||||
| {
|
||||
termsMarkdown: string;
|
||||
termsLanguageTag: string;
|
||||
termsLanguageTag: string | undefined;
|
||||
}
|
||||
| undefined
|
||||
>(() => undefined);
|
||||
@ -30,7 +30,7 @@ export function useDownloadTerms(params: {
|
||||
kcContext: KcContextLike;
|
||||
downloadTermsMarkdown: (params: {
|
||||
currentLanguageTag: string;
|
||||
}) => Promise<{ termsMarkdown: string; termsLanguageTag: string }>;
|
||||
}) => Promise<{ termsMarkdown: string; termsLanguageTag: string | undefined }>;
|
||||
}) {
|
||||
const { kcContext, downloadTermsMarkdown } = params;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user