Tracing: Fix cannot assign to read only property in TagMappingInput (#75070)
* Fix cannot assign to read only property in TagMappingInput * cloneDeep and updates * Update assignment * Updates state change
This commit is contained in:
@@ -28,7 +28,7 @@ export const TagMappingInput = ({ values, onChange, id }: Props) => {
|
||||
onChange(
|
||||
values.map((v, i) => {
|
||||
if (i === idx) {
|
||||
v.key = String(e);
|
||||
return { ...v, key: String(e) };
|
||||
}
|
||||
return v;
|
||||
})
|
||||
@@ -46,7 +46,7 @@ export const TagMappingInput = ({ values, onChange, id }: Props) => {
|
||||
onChange(
|
||||
values.map((v, i) => {
|
||||
if (i === idx) {
|
||||
v.value = String(e);
|
||||
return { ...v, value: String(e) };
|
||||
}
|
||||
return v;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user