Skip to content

Commit facffec

Browse files
committed
feat: extract lists for Choice Set to be filtered
1 parent 0596157 commit facffec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ module.exports = function (cardscript) {
4949
if (element.choices) {
5050
buildLabelList(element.id, element.choices)
5151
}
52+
53+
if (element.filter) {
54+
const origId = `${element.id}Orig`
55+
const filteredId = `${element.id}Filt`
56+
57+
buildLabelList(origId, element.choices)
58+
buildLabelList(filteredId, element.choicesg)
59+
}
5260
break
5361
case 'TabSet':
5462
element.tabs.forEach(parseElement)

0 commit comments

Comments
 (0)