refac
This commit is contained in:
1 parent
71a39dbac1
commit
36a81ad43b
1 file changed
+4
@@ -82,6 +82,7 @@
|
||||
loading = true;
|
||||
|
||||
if (validateCommandString(command)) {
|
||||
try {
|
||||
await onSubmit({
|
||||
id: prompt?.id,
|
||||
name,
|
||||
@@ -100,6 +101,9 @@
|
||||
if (history.length > 0) {
|
||||
selectedHistoryEntry = history[0];
|
||||
}
|
||||
} catch (error) {
|
||||
toast.error(`${error}`);
|
||||
}
|
||||
} else {
|
||||
toast.error(
|
||||
$i18n.t('Only alphanumeric characters and hyphens are allowed in the command string.')
|
||||
|
||||
Reference in new issue
Block a user