Checkbox Group - Removing Items on Re-configuration mangles the config data


I am using a dynamically generated checkbox eg:

            <CheckboxGroup label="Optional Fields" name="fields">
                { => (
                <Checkbox label={} value={field.key} />

It works well to add and remove items on first configuration. However, if I publish the page and then reconfigure it and try to use the checkbox group again, config.fields becomes an absolutely unusable nested array like [[, e, n, v, i, r, o, m, t, , , s, a, c, h, ], assignee] instead of [environment, assignee, search] - where assignee is the new added value and the old existing values were the ones that got split as individual unique characters.

(but it’s not actually an array, its a string which could be the root cause of the bug - looks to be related to some kind of iterator acting on a string that it expects to be an array)


I think this would be quite a small fix and happy to look at/fix the code for it myself if that’s an option?