Skip to content

Commit

Permalink
fix: merged marked as unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Jan 16, 2022
1 parent bb428b8 commit 6ee17e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/code/model/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export function operationChanges(origin: WasabeeOp, current: WasabeeOp) {
"comment",
"referencetime",
"color",
"localchanged",
]),
portals: compareList(
origin.opportals,
Expand Down
2 changes: 1 addition & 1 deletion src/code/model/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class WasabeeOp extends Evented implements IOperation {
this.teamlist = obj.teamlist ? obj.teamlist : [];
this.fetched = obj.fetched ? obj.fetched : null;
this.stored = obj.stored ? obj.stored : null;
this.localchanged = obj.localchanged === false ? obj.localchanged : true;
this.localchanged = !!obj.localchanged;
this.keysonhand = obj.keysonhand ? obj.keysonhand : [];
this.zones = this.convertZonesToObjs(obj.zones);
// this.modified = obj.modified ? obj.modified : null;
Expand Down

0 comments on commit 6ee17e3

Please sign in to comment.