Tweak API to support syntax errors in custom parsing

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-09-07 22:29:32 -07:00
parent ec0b05ab51
commit a7b3efe56c
2 changed files with 25 additions and 15 deletions

View File

@@ -80,6 +80,8 @@ input[type="text"] {
if (term !== null) {
const query = `type(empty, ${term}, ?tau)`;
app.ports.receiveConverted.send({ input: string, query });
} else {
app.ports.receiveConverted.send({ input: string, query: null });
}
});