Skip to content

Commit 1c01e1f

Browse files
committed
Update App.tsx
1 parent 367c48f commit 1c01e1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demo/src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ function App() {
239239
indent={indent}
240240
onUpdate={async (nodeData) => {
241241
const demoOnUpdate = demoData[selectedData]?.onUpdate
242-
const result = demoOnUpdate ? await demoOnUpdate(nodeData, toast) : undefined
242+
const result = demoOnUpdate
243+
? await demoOnUpdate(nodeData, toast as (options: unknown) => void)
244+
: undefined
243245
const { newData } = nodeData
244246
if (result) return result
245247
else {

0 commit comments

Comments
 (0)