Skip to content

Commit

Permalink
[Staleness] Fix issue with object view staleness styles not being res…
Browse files Browse the repository at this point in the history
…et on clock change (#7122)

Add logic to un/re-subscribe when clock changes to object view
  • Loading branch information
khalidadil authored Oct 6, 2023
1 parent 084784a commit 6b32c63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/components/ObjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export default {
this.initObjectStyles();
this.triggerStalenessSubscribe(this.domainObject);
}
this.setupClockChangedEvent((domainObject) => {
this.triggerUnsubscribeFromStaleness(domainObject);
this.subscribeToStaleness(domainObject);
});
},
methods: {
clear() {
Expand Down

0 comments on commit 6b32c63

Please sign in to comment.