From 0645af9b7de8bf016fb1d231f811d8d89c7c1657 Mon Sep 17 00:00:00 2001 From: Zhenhua Hu Date: Sat, 13 May 2023 10:51:47 +0800 Subject: [PATCH] add code --- helper/schema/field_reader_config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helper/schema/field_reader_config.go b/helper/schema/field_reader_config.go index cd4a993a35c..0b0db6f9e92 100644 --- a/helper/schema/field_reader_config.go +++ b/helper/schema/field_reader_config.go @@ -42,6 +42,11 @@ func (r *ConfigFieldReader) readField( // the address with the real list index. i.e. set.50 might actually // map to set.12 in the config, since it is in list order in the // config, not indexed by set value. + + updatedAddress := make([]string, len(address)) + copy(updatedAddress, address) + address = updatedAddress + for i, v := range schemaList { // Sets are the only thing that cause this issue. if v.Type != TypeSet {