mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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);
|
||||
GetDocResult latestDoc = SnapshotApi.getResult(getDoc);
|
||||
int latest = latestDoc.getVersionID();
|
||||
if (latest > version) {
|
||||
if (latest > version || (latest == 0 && version == 0)) {
|
||||
for (
|
||||
SnapshotInfo snapshotInfo :
|
||||
SnapshotApi.getResult(savedVers).getSavedVers()
|
||||
|
|
Loading…
Reference in a new issue