We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c54c3a8 commit 63d2344Copy full SHA for 63d2344
1 file changed
src/core/ModelManager.js
@@ -281,9 +281,11 @@ export default class ModelManager {
281
const names = Object.keys(this.data);
282
for (let i = 0; i < names.length; i++) {
283
const name = names[i];
284
- const hooks = this.model.views[name].hooks || [];
285
- for (let viewIdx = 0; viewIdx < this.data[name].length; viewIdx++) {
286
- this.runHooks(name, viewIdx);
+ if (this.model.views[name]) {
+ const hooks = this.model.views[name].hooks || [];
+ for (let viewIdx = 0; viewIdx < this.data[name].length; viewIdx++) {
287
+ this.runHooks(name, viewIdx);
288
+ }
289
}
290
291
0 commit comments