mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
The UI adds a `key` attribute to annotation objects to store the letter used for labels in the chart and tables. When editing and saving an annotation that `key` could end up being saved to the annotations index. This isn't necesseary since the `key` attribute is just a dynamic label used within the UI. This fixes it by deleting an eventual `key` attribute from the annotations object before saving it to the index.
This commit is contained in:
parent
ea8042042f
commit
3d565603d0
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ export function annotationProvider(
|
|||
if (typeof annotation._id !== 'undefined') {
|
||||
params.id = annotation._id;
|
||||
delete params.body._id;
|
||||
delete params.body.key;
|
||||
}
|
||||
|
||||
return await callWithRequest('index', params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue