make clearing state for storage more type-safe (#1884)

This commit is contained in:
David Luzar 2020-07-11 13:09:40 +02:00 committed by GitHub
parent 6428b59ccb
commit 0ee2c15929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 107 additions and 36 deletions

View file

@ -374,7 +374,7 @@ export const loadScene = async (id: string | null, privateKey?: string) => {
return {
elements: data.elements,
appState: data.appState && { ...data.appState },
appState: data.appState,
commitToHistory: false,
};
};