fix font selector losing list of local fonts when selecting one
This commit is contained in:
parent
665faf892a
commit
4d3d075151
3 changed files with 6 additions and 4 deletions
|
|
@ -112,7 +112,8 @@ const interfaceMod = {
|
|||
state.lastTimeline = value
|
||||
},
|
||||
setFontsList (state, value) {
|
||||
state.localFonts = new Set(value.map(font => font.family))
|
||||
// Set is used here so that we filter out duplicate fonts (possibly same font but with different weight)
|
||||
state.localFonts = [...(new Set(value.map(font => font.family))).values()]
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue