We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5361d4 commit 4f6d1e7Copy full SHA for 4f6d1e7
1 file changed
src/core/ModelManager.js
@@ -47,6 +47,7 @@ export default class ModelManager {
47
this.activeViewIndex = 0;
48
this.collapseState = {};
49
this.listeners = [];
50
+ this.nextViewId = 0;
51
}
52
53
get data() {
@@ -139,7 +140,7 @@ export default class ModelManager {
139
140
const index = viewList.length;
141
const name = `${this.localizedData.getView(viewName)} ${index}`;
142
- viewList.push({ name });
143
+ viewList.push({ name, id: this.nextViewId++ });
144
this.data = assignObjKey(this.data, viewName, viewList);
145
this.activateView(viewName, index);
146
0 commit comments