diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-16 19:03:33 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-16 19:03:33 +0300 |
commit | 42fd8893076bd96cb09bd95793fa712407a53110 (patch) | |
tree | e1a9a28357323554b959ed5301cfb3052a329748 /src | |
parent | c8148e64d320f2d16b00c5ccde6133f3164892cb (diff) |
Do not override existing aliases
We have to initialize the list of aliases as empty array for new
accounts, but for existing ones we want to respect the given value.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r-- | src/store/mutations.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/mutations.js b/src/store/mutations.js index c6fec5724..17cbe5ef2 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -122,7 +122,7 @@ export default { // Save the mailboxes to the store, but only keep IDs in the account's mailboxes list const mailboxes = sortMailboxes(account.mailboxes || []) Vue.set(account, 'mailboxes', []) - Vue.set(account, 'aliases', []) + Vue.set(account, 'aliases', account.aliases ?? []) mailboxes.map(addMailboxToState(state, account)) }, editAccount(state, account) { |