mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 14:31:39 -05:00
Fetch snapshots in edge-case where version-id is zero
This commit is contained in:
parent
766dcc379c
commit
ba8ba001d6
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ public class SnapshotApiFacade {
|
||||||
= api.getSavedVers(oauth2, projectName);
|
= api.getSavedVers(oauth2, projectName);
|
||||||
GetDocResult latestDoc = SnapshotApi.getResult(getDoc);
|
GetDocResult latestDoc = SnapshotApi.getResult(getDoc);
|
||||||
int latest = latestDoc.getVersionID();
|
int latest = latestDoc.getVersionID();
|
||||||
if (latest > version) {
|
if (latest > version || (latest == 0 && version == 0)) {
|
||||||
for (
|
for (
|
||||||
SnapshotInfo snapshotInfo :
|
SnapshotInfo snapshotInfo :
|
||||||
SnapshotApi.getResult(savedVers).getSavedVers()
|
SnapshotApi.getResult(savedVers).getSavedVers()
|
||||||
|
|
Loading…
Reference in a new issue