diff --git a/web/src/components/worker.ts b/web/src/components/worker.ts index 5cdbe78..38bbee8 100644 --- a/web/src/components/worker.ts +++ b/web/src/components/worker.ts @@ -9,8 +9,8 @@ addEventListener("message", async (event) => { switch (data.type) { case "compare": const output = compare_rulesets_js( - RuleSetJs.decode(data.optionsLeft), - RuleSetJs.decode(data.optionsRight), + RuleSetJs.decode(data.optionsLeft)!, + RuleSetJs.decode(data.optionsRight)!, data.patDepth, data.tyDepth, );