Skip to content

Commit

Permalink
Fixed gh-31 for some reason this.description.component was null.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffroy-noel-ddh committed Aug 22, 2023
1 parent c362b60 commit 05cdd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ createApp({
},
methods: {
isComponentFeatureSelected(componentKey, featureKey) {
let features = this.description?.components[componentKey]?.features || []
let features = (this.description?.components || {})[componentKey]?.features || []
return features.includes(featureKey)
},
loadObjects() {
Expand Down

0 comments on commit 05cdd0e

Please sign in to comment.