From 83e021855369828e5632c3b791c6eb35074511ec Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Fri, 28 Sep 2018 14:59:25 -0400 Subject: [PATCH] Fix state management in collections Closes #863 --- src/routes/settings/fields.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/routes/settings/fields.vue b/src/routes/settings/fields.vue index 654d105681..1974533683 100644 --- a/src/routes/settings/fields.vue +++ b/src/routes/settings/fields.vue @@ -52,7 +52,7 @@ @@ -166,16 +166,19 @@ export default { ]; }, collectionInfo() { - return { - ...this.$store.state.collections[this.collection], - ...this.edits - }; + return this.$store.state.collections[this.collection]; }, fieldsWithSort() { return this.fields.map((field, index) => ({ ...field, sort: index + 1 })); + }, + values() { + return { + ...this.collectionInfo, + ...this.edits + }; } }, methods: {