mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
c955eff1cb
commit
4155f0a92e
@ -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;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user