Skip to content

Commit

Permalink
fix bug when choosing infinite analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Nov 10, 2023
1 parent 5de96cd commit 534ec8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/panels/analysis/EngineSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ function AdvancedOptions({
setSettings((prev) => {
const newGo = prev.go;
newGo.t = v as "Depth" | "Time" | "Nodes" | "Infinite";
if (v === "Infinite") {
/// @ts-expect-error idk how to please ts here
delete newGo.c;
}
return {
...prev,
go: newGo,
Expand Down

0 comments on commit 534ec8e

Please sign in to comment.