force migrate

This commit is contained in:
Steve Ruiz 2021-11-05 06:57:41 +00:00
parent 25cd388ff3
commit e3775c4c12

View file

@ -103,7 +103,7 @@ export class TLDrawState extends StateManager<Data> {
super(TLDrawState.defaultState, id, TLDrawState.version, (prev, next) => {
return {
...next,
document: { ...next.document, ...prev.document, version: prev.document.version },
document: migrate({ ...next.document, ...prev.document, version: 0 }, TLDrawState.version),
}
})