We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96309f2 commit d19ebd8Copy full SHA for d19ebd8
1 file changed
src/core/ModelManager.js
@@ -239,8 +239,11 @@ export default class ModelManager {
239
if (!this.data[this.activeViewName]) {
240
this.data = assignObjKey(this.data, this.activeViewName, []);
241
}
242
- if (!this.data[this.activeViewName][this.activeViewIndex]) {
243
- this.data[this.activeViewName].splice(this.activeViewIndex, 1, {});
+ while (this.data[this.activeViewName].length < this.activeViewIndex + 1) {
+ this.data[this.activeViewName].push({
244
+ name: this.localizedData.getView(this.activeViewName),
245
+ id: this.getNextViewId(),
246
+ });
247
248
249
const viewData = this.data[this.activeViewName][this.activeViewIndex];
0 commit comments