We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f304552 commit 2a7eebbCopy full SHA for 2a7eebb
src/compas-editors/CompasVersions.ts
@@ -45,20 +45,16 @@ export default class CompasVersionsPlugin extends LitElement {
45
@property()
46
historyItem: Element[] | undefined;
47
48
- firstUpdated(): void {
49
- if (!this.docId) {
50
- this.historyItem = [];
51
- } else {
52
- this.fetchData()
53
- }
54
55
-
56
protected updated(_changedProperties: PropertyValues): void {
57
super.updated(_changedProperties);
58
59
// When the document is updated, we also will retrieve the history again, because probably it has changed.
60
if (_changedProperties.has('doc')) {
61
- this.firstUpdated();
+ if (!this.docId) {
+ this.historyItem = [];
+ } else {
+ this.fetchData()
+ }
62
}
63
64
0 commit comments