Skip to content

Commit

Permalink
[frontend] Fixed Tag creation method (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
heditar authored Nov 29, 2024
1 parent 34c7f17 commit 04f69f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions openbas-front/src/components/fields/TagField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ const TagField: FunctionComponent<Props> = ({
if (result.result) {
const newTag = result.entities.tags[result.result];
const newTags = R.append(
{
id: newTag.tag_id,
label: newTag.tag_name,
color: newTag.tag_color,
},
newTag.tag_id,
fieldValue,
);
fieldOnChange(newTags);
Expand Down

0 comments on commit 04f69f8

Please sign in to comment.