Skip to content

Commit 7ccf56d

Browse files
committed
perf(studio): join the font lists without iterating them when they arrive
1 parent ef89180 commit 7ccf56d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/studio/src/components/editor/propertyPanelFont.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function loadFontLists(): void {
147147
fetchFontList("/api/fonts/google"),
148148
])
149149
.then(([installed, google]) => {
150-
const names = [...google, ...POPULAR_GOOGLE_FONT_FAMILIES];
150+
const names = google.concat(POPULAR_GOOGLE_FONT_FAMILIES);
151151
const families: string[] = [];
152152
const googleKeys = new Set<string>();
153153
let next = 0;

0 commit comments

Comments
 (0)