Recompute index after loading new list of models in ModelAccess

issue7371
review45401002
This commit is contained in:
Cédric Krier committed 2018-04-20 12:47:20 +02:00
1 parent 2c5b87ed7f
commit baf255656c
1 file changed
+1
+1
View File
@@ -450,6 +450,7 @@
var idx = this._models.indexOf(model);
if (idx < 0) {
this.load_models(false);
idx = this._models.indexOf(model);
}
var to_load = this._models.slice(
Math.max(0, idx - Math.floor(this.batchnum / 2)),