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:
@ -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({
|
||||
|
Reference in New Issue
Block a user