Skip to content

Commit

Permalink
fix: Unexpected lexical declaration in case block
Browse files Browse the repository at this point in the history
  • Loading branch information
meenahoda committed Jun 16, 2022
1 parent 23bb3b0 commit 5333d8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ module.exports = async function extractDefaults (cardscript) {
break
case 'TabSet':
applyDefaultValue(defaultValues, 'tab-0', apiLookupPath, cardListPath, `${element.id}TabSet`)

const tabSetShowWhens = element.tabs.map(t => t.showWhen)
applyDefaultValue(defaultValues, tabSetShowWhens, apiLookupPath, cardListPath, `${element.id}TabSetShowWhens`)
applyDefaultValue(defaultValues, element.tabs.map(t => t.showWhen), apiLookupPath, cardListPath, `${element.id}TabSetShowWhens`)

element.tabs.forEach(parseElement)
break
Expand Down

0 comments on commit 5333d8d

Please sign in to comment.