Skip to content

Commit

Permalink
[bug] Fix for missing originFormat when opening via restore button in…
Browse files Browse the repository at this point in the history
… version history
  • Loading branch information
konovalovsergey committed Sep 5, 2024
1 parent 3dd17e6 commit 1103d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DocService/sources/canvasservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function* commandOpen(ctx, conn, cmd, outputData, opt_upsertRes, opt_bIsRestore)
if (opt_upsertRes) {
upsertRes = opt_upsertRes;
} else {
upsertRes = yield commandOpenStartPromise(ctx, cmd.getDocId(), utils.getBaseUrlByConnection(ctx, conn));
upsertRes = yield commandOpenStartPromise(ctx, cmd.getDocId(), utils.getBaseUrlByConnection(ctx, conn), undefined, cmd.getFormat());
}
let bCreate = upsertRes.isInsert;
let needAddTask = bCreate;
Expand Down

0 comments on commit 1103d1b

Please sign in to comment.