Skip to content

Commit a3d0dc8

Browse files
committed
tag -> new description field
1 parent 7e91996 commit a3d0dc8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item/pipeline_processors_editor_item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ export const PipelineProcessorsEditorItem: FunctionComponent<Props> = memo(
5959
onChange={(nextDescription) => {
6060
let nextOptions: Record<string, any>;
6161
if (!nextDescription) {
62-
const { tag, ...restOptions } = processor.options;
62+
const { description: __, ...restOptions } = processor.options;
6363
nextOptions = restOptions;
6464
} else {
6565
nextOptions = {
6666
...processor.options,
67-
tag: nextDescription,
67+
description: nextDescription,
6868
};
6969
}
7070
processorsDispatch({

x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processors_tree/components/tree_node.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ export const TreeNode: FunctionComponent<Props> = ({
106106
selector={processorInfo.selector}
107107
processor={processor}
108108
handlers={handlers}
109-
// TODO: Replace with processor.options.description when it is available
110-
description={processor.options.tag}
109+
description={processor.options.description}
111110
selected={Boolean(movingProcessor?.id === processor.id)}
112111
/>
113112
{renderOnFailureHandlersTree()}

0 commit comments

Comments
 (0)