mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
Fetch snapshots in edge-case where version-id is zero
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user