mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: improve types around dataState and libraryData (#3427)
This commit is contained in:
parent
c19c8ecd27
commit
a7cbe68ae8
10 changed files with 84 additions and 55 deletions
|
@ -714,6 +714,13 @@ class App extends React.Component<AppProps, AppState> {
|
|||
initialData = (await this.props.initialData) || null;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
initialData = {
|
||||
appState: {
|
||||
errorMessage:
|
||||
error.message ||
|
||||
"Encountered an error during importing or restoring scene data",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
const scene = restore(initialData, null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue