Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Apr 19, 2024
1 parent 5feca12 commit 2fe5e4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/frontend/components/checks/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function RenderCheckNode({
value={currentOperator}
onChange={(val) => {
const newNodeArray = [...node]
newNodeArray[0] = val
if (val !== null) {
newNodeArray[0] = val
}
setNode(newNodeArray as CheckLogic)
}}
/>
Expand All @@ -79,7 +81,7 @@ function RenderCheckNode({
// ts assert node is LogicElement
const s = node as LogicData

const check = checks.find((f) => f.id === s.id)
const check = checks.find((f) => f.id === s?.id)

if (!check) return null

Expand Down

0 comments on commit 2fe5e4c

Please sign in to comment.