promenu: fix boolean overwriting

pull/3416/head
Rob Pilling 2024-05-13 18:14:14 +01:00
parent b5ad702c3a
commit a0e5090254
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ type ActualMenuItem = Exclude<Menu["..."], MenuOptions | undefined>;
v = "format" in item
? (item.format as any)(item.value) // <T>format(), value: T
: item.value;
if (typeof v !== "string") v = `${v}`;
} else {
v = "";
}