Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
fix Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
calebmer committed Aug 22, 2018
1 parent 4896087 commit 75a5a65
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,9 +864,10 @@ export class Realm {
this.restoreProperties(this.modifiedProperties);
let completion = this.savedCompletion;
while (completion !== undefined) {
if (completion.savedEffects !== undefined) {
this.restoreBindings(completion.savedEffects.modifiedBindings);
this.restoreProperties(completion.savedEffects.modifiedProperties);
const { savedEffects } = completion;
if (savedEffects !== undefined) {
this.restoreBindings(savedEffects.modifiedBindings);
this.restoreProperties(savedEffects.modifiedProperties);
}
completion = completion.composedWith;
}
Expand Down

0 comments on commit 75a5a65

Please sign in to comment.