diff --git a/docs/prune-simulator/prune-simulator.js b/docs/prune-simulator/prune-simulator.js index 37d97e2c..7d792383 100644 --- a/docs/prune-simulator/prune-simulator.js +++ b/docs/prune-simulator/prune-simulator.js @@ -480,18 +480,19 @@ Ext.onReady(function() { let finished = false; + backups.forEach(function(backup) { + let mark = backup.mark; + if (mark && mark === 'keep') { + let id = idFunc(backup); + alreadyIncluded[id] = true; + } + }); + backups.forEach(function(backup) { let mark = backup.mark; let id = idFunc(backup); - if (finished || alreadyIncluded[id]) { - return; - } - - if (mark) { - if (mark === 'keep') { - alreadyIncluded[id] = true; - } + if (finished || alreadyIncluded[id] || mark) { return; }