Recompute index after loading new list of models in ModelAccess
issue7371 review45401002
This commit is contained in:
1 parent
2c5b87ed7f
commit
baf255656c
1 file changed
+1
@@ -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)),
|
||||
|
||||
Reference in new issue
Block a user