Skip to content

Commit ae51f5f

Browse files
committed
test from #1195
1 parent af738e0 commit ae51f5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: helper/schema/field_reader_config.go

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ func (r *ConfigFieldReader) readField(
4545
// the address with the real list index. i.e. set.50 might actually
4646
// map to set.12 in the config, since it is in list order in the
4747
// config, not indexed by set value.
48+
49+
updatedAddress := make([]string, len(address))
50+
copy(updatedAddress, address)
51+
address = updatedAddress
52+
4853
for i, v := range schemaList {
4954
// Sets are the only thing that cause this issue.
5055
if v.Type != TypeSet {

0 commit comments

Comments
 (0)