fall back on given label for comands

This commit is contained in:
Chris Kruining 2025-01-07 16:09:23 +01:00
parent 881608f7de
commit 8c4b481082
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -128,7 +128,7 @@ const Handle: Component<{ command: CommandType }> = (props) => {
const { t } = useI18n();
return <>
{String(t(props.command.label))}
{String(t(props.command.label) ?? props.command.label)}
<Show when={props.command.shortcut}>{
shortcut => {