Fix /echo mishandling non-string values
This commit is contained in:
parent
abdd1f3e6e
commit
daa582bb73
|
@ -2015,6 +2015,9 @@ async function echoCallback(args, value) {
|
||||||
args.severity = null;
|
args.severity = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure that the value is a string
|
||||||
|
value = String(value);
|
||||||
|
|
||||||
const title = args.title ? args.title : undefined;
|
const title = args.title ? args.title : undefined;
|
||||||
const severity = args.severity ? args.severity : 'info';
|
const severity = args.severity ? args.severity : 'info';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue