From 49461d1074f6e5ab0f8661931b6894ccb8419b3d Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 6 Dec 2017 16:01:58 -0800 Subject: [PATCH] Fix migration path for old signatures --- app/src/flux/stores/signature-store.es6 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/flux/stores/signature-store.es6 b/app/src/flux/stores/signature-store.es6 index 36b104bb8c..020fbb0956 100644 --- a/app/src/flux/stores/signature-store.es6 +++ b/app/src/flux/stores/signature-store.es6 @@ -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) {