Skip to content

Commit

Permalink
fix(categories): fall back to empty array
Browse files Browse the repository at this point in the history
The categories are not injected on some views, e.g. the public view.

Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Jul 28, 2023
1 parent 1a377e5 commit 32fa3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/EditorMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export default {
},
categoryOptions() {
const categories = { ...this.rfcProps.categories }
categories.options = loadState('calendar', 'categories')
categories.options = loadState('calendar', 'categories', [])

Check warning on line 320 in src/mixins/EditorMixin.js

View check run for this annotation

Codecov / codecov/patch

src/mixins/EditorMixin.js#L320

Added line #L320 was not covered by tests
return categories
},
/**
Expand Down

0 comments on commit 32fa3fa

Please sign in to comment.