Fix revision loading for timeslider having revision count multiple of 100

This commit is contained in:
Stefan Müller 2024-09-10 21:45:02 +02:00
parent 9c21522bc0
commit 70e31b32f1

View file

@ -299,7 +299,7 @@ const loadBroadcastJS = (socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
// Loading changeset history for new revision // Loading changeset history for new revision
loadChangesetsForRevision(newRevision, update); loadChangesetsForRevision(newRevision, update);
// Loading changeset history for old revision (to make diff between old and new revision) // Loading changeset history for old revision (to make diff between old and new revision)
loadChangesetsForRevision(padContents.currentRevision - 1); loadChangesetsForRevision(padContents.currentRevision);
} }
const authors = _.map(padContents.getActiveAuthors(), (name) => authorData[name]); const authors = _.map(padContents.getActiveAuthors(), (name) => authorData[name]);