Answer stability round 1: 1 🔴, 3 🟡 (0 misread); scope the visual selector, check label and cover the gaps
This commit is contained in:
@@ -195,6 +195,7 @@ function findProfileMenuError(entries: PluginManifest["profileMenu"]): string |
|
||||
for (const entry of Array.isArray(entries) ? entries : []) {
|
||||
const what = `profile-menu entry "${entry?.label ?? "?"}"`;
|
||||
if (typeof entry?.href !== "string" || entry.href === "") return `${what} needs an href`;
|
||||
if (typeof entry.label !== "string" || entry.label === "") return `${what} needs a label`;
|
||||
const err = gateError(what, entry);
|
||||
if (err) return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user