fix font component showing objects

This commit is contained in:
Henry Jameson 2026-07-30 13:15:53 +03:00
commit 4c288d7095

View file

@ -246,7 +246,7 @@ export const useInterfaceStore = defineStore('interface', {
} }
}, },
setFontsList(value) { setFontsList(value) {
this.localFonts = [...new Set(value.map((font) => font)).values()] this.localFonts = [...new Set(value.map(({ family }) => family)).values()]
}, },
queryLocalFonts() { queryLocalFonts() {
if (this.localFonts !== null) return if (this.localFonts !== null) return