Skip to content

Commit

Permalink
tag -> new description field
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jun 16, 2020
1 parent 7e91996 commit a3d0dc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ export const PipelineProcessorsEditorItem: FunctionComponent<Props> = memo(
onChange={(nextDescription) => {
let nextOptions: Record<string, any>;
if (!nextDescription) {
const { tag, ...restOptions } = processor.options;
const { description: __, ...restOptions } = processor.options;
nextOptions = restOptions;
} else {
nextOptions = {
...processor.options,
tag: nextDescription,
description: nextDescription,
};
}
processorsDispatch({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ export const TreeNode: FunctionComponent<Props> = ({
selector={processorInfo.selector}
processor={processor}
handlers={handlers}
// TODO: Replace with processor.options.description when it is available
description={processor.options.tag}
description={processor.options.description}
selected={Boolean(movingProcessor?.id === processor.id)}
/>
{renderOnFailureHandlersTree()}
Expand Down

0 comments on commit a3d0dc8

Please sign in to comment.