We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d74aae commit 97f37dbCopy full SHA for 97f37db
demo.ts
plugins/nicklist.ts
@@ -62,7 +62,7 @@ export default createPlugin(
62
// group nicks by prefix
63
64
for (const nick in names) {
65
- const [prefix = ""] = names[nick].join("");
+ const [prefix = ""] = (names[nick] ?? []).join("");
66
nicks[prefix] ??= [];
67
nicks[prefix].push(nick);
68
}
0 commit comments