Skip to content

Commit

Permalink
fix: sync for docs (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihkeleidast committed Aug 17, 2022
1 parent 8373dd1 commit ac748d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/mixins/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ module.exports = mixin(
if (event === 'change' && data.isResource) {
this.emit('updated', data);
this._app.emit('source:updated', this, data);
} else if (event === 'change' && data.isTemplate) {
} else if (event === 'change' && data.isTemplate && data.isView) {
// re-resolve context in case the changed template is used as fully rendered component in context
this._resolveTreeContext(this._fileTree).then(() => {
this.emit('updated', data);
Expand Down

0 comments on commit ac748d6

Please sign in to comment.