fix(client): validate input response in aiscript
This commit is contained in:
@@ -20,7 +20,11 @@ export function install(plugin) {
|
||||
inputText({
|
||||
title: q,
|
||||
}).then(({ canceled, result: a }) => {
|
||||
ok(a);
|
||||
if (canceled) {
|
||||
ok('');
|
||||
} else {
|
||||
ok(a);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user