Catch errors in autolabel generation and fallback to default event name (logging error)
@@ -192,7 +192,12 @@ const ScriptEventTitle = ({ command, args = {} }: ScriptEventTitleProps) => {
}
return String(value);
};
+ try {
setAutoName(events[command]?.autoLabel?.(mapArg, args) || "");
+ } catch (e) {
+ console.error(`Auto name failed for ${command} with args`, args);
+ console.error(e);
+ }
}
}, [
command,
