We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367c48f commit 1c01e1fCopy full SHA for 1c01e1f
demo/src/App.tsx
@@ -239,7 +239,9 @@ function App() {
239
indent={indent}
240
onUpdate={async (nodeData) => {
241
const demoOnUpdate = demoData[selectedData]?.onUpdate
242
- const result = demoOnUpdate ? await demoOnUpdate(nodeData, toast) : undefined
+ const result = demoOnUpdate
243
+ ? await demoOnUpdate(nodeData, toast as (options: unknown) => void)
244
+ : undefined
245
const { newData } = nodeData
246
if (result) return result
247
else {
0 commit comments