diff --git a/drizzle/meta/0002_snapshot.json b/drizzle/meta/0002_snapshot.json index 2890f66..feb820c 100644 --- a/drizzle/meta/0002_snapshot.json +++ b/drizzle/meta/0002_snapshot.json @@ -28,8 +28,8 @@ "notNull": true, "autoincrement": false }, - "focusMode": { - "name": "focusMode", + "sources": { + "name": "sources", "type": "text", "primaryKey": false, "notNull": true, diff --git a/src/lib/agents/search/widgets/calculationWidget.ts b/src/lib/agents/search/widgets/calculationWidget.ts index 0026741..3e28015 100644 --- a/src/lib/agents/search/widgets/calculationWidget.ts +++ b/src/lib/agents/search/widgets/calculationWidget.ts @@ -51,6 +51,10 @@ const calculationWidget: Widget = { schema, }); + if (output.notPresent) { + return; + } + const result = mathEval(output.expression); return {