File tree Expand file tree Collapse file tree 1 file changed +8
-23
lines changed Expand file tree Collapse file tree 1 file changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -20,40 +20,25 @@ locals {
20
20
21
21
used_words = setunion (
22
22
[],
23
- jsondecode (data. coder_parameter . yellow . value ),
24
- jsondecode (data. coder_parameter . green . value ),
23
+ # jsondecode(data.coder_parameter.yellow.value),
24
+ # jsondecode(data.coder_parameter.green.value),
25
25
)
26
26
27
27
available_words = setsubtract (toset (local. word_bank ), toset (local. used_words ))
28
28
}
29
29
30
- data "coder_parameter" "yellow" {
31
- name = " yellow"
30
+ data "coder_parameter" "rows" {
31
+ for_each = [" yellow" , " green" , " blue" , " purple" ]
32
+ name = each. value
33
+ # name = "rows"
32
34
display_name = " Row"
33
35
type = " list(string)"
34
36
form_type = " multi-select"
35
- # default = "[]"
37
+ default = " []"
36
38
37
39
dynamic "option" {
38
40
# for_each = tolist(setsubtract(toset(local.word_bank), toset(local.used_words)))
39
- for_each = local. word_bank
40
- content {
41
- name = option. value
42
- value = option. value
43
- }
44
- }
45
- }
46
-
47
- data "coder_parameter" "green" {
48
- name = " green"
49
- display_name = " Row"
50
- type = " list(string)"
51
- form_type = " multi-select"
52
- # default = "[]"
53
-
54
- dynamic "option" {
55
- # for_each = tolist(setsubtract(toset(local.word_bank), toset(local.used_words)))
56
- for_each = local. word_bank
41
+ for_each = local. available_words
57
42
content {
58
43
name = option. value
59
44
value = option. value
You can’t perform that action at this time.
0 commit comments