Skip to content

Commit

Permalink
Updated CHANGELOG and fixed style
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
  • Loading branch information
seyfeb committed Mar 11, 2021
1 parent 4136695 commit 7c2cdd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c2cdd9

Please sign in to comment.