Update migrate.ts

This commit is contained in:
Steve Ruiz 2021-12-27 18:51:20 +00:00
parent 7c02a6d514
commit e48f0c1794

View file

@ -72,7 +72,7 @@ export function migrate(document: TDDocument, newVersion: number): TDDocument {
document.assets = {}
}
if (version < 15.3) {
if (version < 15.2) {
Object.values(document.pages).forEach((page) => {
Object.values(page.shapes).forEach((shape) => {
if (shape.type === TDShapeType.Image || shape.type === TDShapeType.Video) {