Skip to content

Commit

Permalink
Fix issue with arrays in Kitinerary
Browse files Browse the repository at this point in the history
  • Loading branch information
gfaudriga committed Apr 12, 2024
1 parent 97d453c commit 40c711c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Schema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export default {
},
methods: {
getRenderedSchema() {

if (Array.isArray(this.json) && this.json.length == 1) {

Check failure on line 75 in src/components/Schema.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected '===' and instead saw '=='
this.html = Jsonld2html.render(structuredClone(this.json)[0])
}

const rendered = Jsonld2html.render(structuredClone(this.json))

this.html = rendered
Expand Down

0 comments on commit 40c711c

Please sign in to comment.