mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Allow opening empty excalidraw file (#1348)
* allow openning empty file * correctly throw error * fix error handling * switch back to error objects Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
70e7dd6e3b
commit
0a284adc18
3 changed files with 5 additions and 10 deletions
|
@ -92,7 +92,7 @@ export const actionLoadScene = register({
|
|||
updateData({ elements: elements, appState: appState });
|
||||
})
|
||||
.catch((error) => {
|
||||
updateData({ error: error });
|
||||
updateData({ error: error.message });
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue