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:
@ -92,7 +92,7 @@ export const actionLoadScene = register({
|
||||
updateData({ elements: elements, appState: appState });
|
||||
})
|
||||
.catch((error) => {
|
||||
updateData({ error: error });
|
||||
updateData({ error: error.message });
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user