fix: empty default font on electron app (#481)
This commit is contained in:
parent
a2eeb253b3
commit
4f9d4f26f2
|
|
@ -27,10 +27,12 @@ const useFontDataElectron = () => {
|
|||
queryKey: ["systemFonts"],
|
||||
})
|
||||
|
||||
return [FALLBACK_FONT].concat(data || []).map((font) => ({
|
||||
label: font,
|
||||
value: font,
|
||||
}))
|
||||
return [{ label: FALLBACK_FONT, value: "inherit" }].concat(
|
||||
(data || []).map((font) => ({
|
||||
label: font,
|
||||
value: font,
|
||||
})),
|
||||
)
|
||||
}
|
||||
|
||||
const useFontDataWeb = () => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue