fix(client): validate input response in aiscript
This commit is contained in:
parent
d65e5f6794
commit
5f3640c7fd
6 changed files with 30 additions and 6 deletions
|
@ -155,7 +155,11 @@ async function run() {
|
|||
os.inputText({
|
||||
title: q,
|
||||
}).then(({ canceled, result: a }) => {
|
||||
ok(a);
|
||||
if (canceled) {
|
||||
ok('');
|
||||
} else {
|
||||
ok(a);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue