diff --git a/CHANGELOG.md b/CHANGELOG.md index e4d408ef8..89000fdcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## [Unreleased] +### Fixed +- Calling reindex + [#653](https://github.com/nextcloud/cookbook/pull/653) @seyfeb +- Setting nutrition information on recipes with an array assigned for nutrition + [#653](https://github.com/nextcloud/cookbook/pull/653) @seyfeb + ## 0.8.4 - 2021-03-08 ### Added diff --git a/src/store/index.js b/src/store/index.js index ae022b7db..58c55ff4b 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -63,10 +63,7 @@ export default new Vuex.Store({ }, setRecipe(state, { r }) { const rec = JSON.parse(JSON.stringify(r)) - if ( - "nutrition" in rec && - rec.nutrition instanceof Array - ) { + if ("nutrition" in rec && rec.nutrition instanceof Array) { rec.nutrition = {} } state.recipe = rec