Skip to content

Commit

Permalink
Fix migration path for old signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Dec 7, 2017
1 parent 36ffcb6 commit 49461d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/flux/stores/signature-store.es6
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class SignatureStore extends MailspringStore {
});
}

// migrate signatures that didn't have a `data` property
Object.values(this.signatures).forEach(sig => (sig.data = sig.data || {}));

this._autoselectSignatureId();

if (!this.unsubscribers) {
Expand Down

0 comments on commit 49461d1

Please sign in to comment.