purify getDefaultAppState by removing name

This commit is contained in:
dwelle
2021-01-03 23:46:18 +01:00
parent ade2565f49
commit fe973e3513
10 changed files with 38 additions and 12 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import {
} from "../../appState";
import { clearElementsForLocalStorage } from "../../element";
import { STORAGE_KEYS as APP_STORAGE_KEYS } from "../../constants";
import { ImportedDataState } from "../../data/types";
export const STORAGE_KEYS = {
LOCAL_STORAGE_ELEMENTS: "excalidraw",
@@ -81,7 +82,7 @@ export const importFromLocalStorage = () => {
}
}
let appState = null;
let appState: ImportedDataState["appState"] = null;
if (savedState) {
try {
appState = {