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
|
@ -2358,7 +2358,7 @@ export class App extends React.Component<any, AppState> {
|
|||
}),
|
||||
)
|
||||
.catch((error) => {
|
||||
this.setState({ isLoading: false, errorMessage: error });
|
||||
this.setState({ isLoading: false, errorMessage: error.message });
|
||||
});
|
||||
} else {
|
||||
this.setState({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue