We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c6c5fff + 366f8c3 commit 21001e9Copy full SHA for 21001e9
src/App.tsx
@@ -434,8 +434,9 @@ export default function App({
434
const maxSizeMb = maxImageSizeMb ?? 0
435
throw new Error(t('whiteboard', 'Max image size is {max} MB', { max: maxSizeMb }))
436
}
437
- // Return empty string so Excalidraw falls back to its default ID generator.
438
- return ''
+
+ // must return an id, excalidraws id generator only runs when the callback prop is not set
439
+ return Array.from({ length: 40 }, () => Math.floor(Math.random() * 16).toString(16)).join('')
440
}, [maxImageSizeBytes, maxImageSizeMb])
441
442
const handleOnChange = useCallback(() => {
0 commit comments