Skip to content

Commit

Permalink
fix: sync for docs (frctl#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihkeleidast authored and joyheron committed Sep 20, 2022
1 parent 4f05bea commit 38f05cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fractal-fork version history
unreleased
----------

* tbd
* [patch] fix: sync for docs [frctl#1181](https://github.com/frctl/fractal/pull/1181)


0.0.5
Expand Down
2 changes: 1 addition & 1 deletion src/core/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 38f05cb

Please sign in to comment.