Skip to content

Commit

Permalink
Fallback on empty objects for easier testing of properties
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Jul 13, 2021
1 parent 82c85ce commit d08da80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mixins/page/head-tags.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default

# Make accessor for seo data which may live in a supertable or as
# individaual fields on the page itself
defaultSeo: -> @$store?.state?.globals?.defaultSeo?.seo?[0]
pageSeo: -> @page?.seo?[0]
defaultSeo: -> @$store?.state?.globals?.defaultSeo?.seo?[0] || {}
pageSeo: -> @page?.seo?[0] || {}

methods:

Expand Down

0 comments on commit d08da80

Please sign in to comment.