Skip to content

Commit

Permalink
Fixed equality check.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJohnsonIII committed Nov 18, 2018
1 parent a6052f9 commit c164b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docregistry/src/mimedocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class MimeContent extends Widget {
}
let data = options.data[this.mimeType];
if (typeof data === 'string') {
if (data === this._context.model.toString()) {
if (data !== this._context.model.toString()) {
this._context.model.fromString(data);
}
} else {
Expand Down

0 comments on commit c164b41

Please sign in to comment.