Skip to content

Commit

Permalink
fix(ui): regression fix, notes are now deletable
Browse files Browse the repository at this point in the history
  • Loading branch information
asalem1 committed Dec 10, 2019
1 parent 5cc02de commit c2ffd0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ interface RowsProps {
const Rows: SFC<RowsProps> = ({tags, onDeleteTag, onChange}) => {
return (
<div className="input-tag-list">
{tags.map(item => {
{tags.map((item, index) => {
return (
<Row
index={tags.indexOf(item)}
index={index}
key={uuid.v4()}
item={item}
onDelete={onDeleteTag}
Expand Down
7 changes: 7 additions & 0 deletions ui/src/shared/components/cells/CellContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ const CellContext: FunctionComponent<Props> = ({
onHide={onHide}
testID="cell-context--note"
/>
<CellContextDangerItem
label="Delete"
onClick={handleDeleteCell}
icon={IconFont.Trash}
onHide={onHide}
testID="cell-context--delete"
/>
</div>
)
}
Expand Down

0 comments on commit c2ffd0f

Please sign in to comment.