mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-13 08:29:22 -05:00
ab4a01f15b
[CE/SP] Hotfix 3.1.1 GitOrigin-RevId: f1c3feb17e90f9cd1050b7a2b4ad18e7db9a8ed3
16 lines
No EOL
712 B
Diff
16 lines
No EOL
712 B
Diff
--- services/web/frontend/js/ide/history/controllers/HistoryListController.js
|
|
+++ services/web/frontend/js/ide/history/controllers/HistoryListController.js
|
|
@@ -62,7 +62,12 @@ App.controller('HistoryListController', function ($scope, $modal, ide) {
|
|
return (() => {
|
|
const result = []
|
|
for (const update of Array.from($scope.history.updates)) {
|
|
- let inSelection
|
|
+
|
|
+ // replacing this declaration with `let` introduces a bug in history point selection:
|
|
+ // https://github.com/overleaf/overleaf/issues/1035
|
|
+ // eslint-disable-next-line no-var
|
|
+ var inSelection
|
|
+
|
|
if (update.selectedTo) {
|
|
inSelection = true
|
|
beforeSelection = false
|