mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix restoring appState (#2182)
This commit is contained in:
parent
b2822f3538
commit
adb1ac5788
8 changed files with 74 additions and 49 deletions
|
@ -17,7 +17,7 @@ import {
|
|||
} from "./data/localStorage";
|
||||
|
||||
import { SAVE_TO_LOCAL_STORAGE_TIMEOUT } from "./time_constants";
|
||||
import { DataState } from "./data/types";
|
||||
import { ImportedDataState } from "./data/types";
|
||||
import { LoadingMessage } from "./components/LoadingMessage";
|
||||
import { ExcalidrawElement } from "./element/types";
|
||||
import { AppState } from "./types";
|
||||
|
@ -112,7 +112,7 @@ function ExcalidrawApp() {
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
const [initialState, setInitialState] = useState<{
|
||||
data: DataState;
|
||||
data: ImportedDataState;
|
||||
user: {
|
||||
name: string | null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue