Skip to content

Commit

Permalink
[#2154] Fixed add tag behaviour (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
stayprodio committed Nov 24, 2021
1 parent 571d3e0 commit 1bad714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -7,7 +7,7 @@
width: 290px;
height: auto;
flex-direction: column;
overflow: hidden;
overflow: auto;
background-color: #fff;
margin: 0 0 0 8px;
padding: 16px;
Expand Down
Expand Up @@ -75,7 +75,6 @@ const ConversationMetadata = (props: ConnectedProps<typeof connector>) => {

const addTag = (tag: TagModel) => {
addTagToConversation(conversation.id, tag.id);
setShowTagsDialog(false);
};

const removeTag = (tag: TagModel) => {
Expand Down Expand Up @@ -120,6 +119,7 @@ const ConversationMetadata = (props: ConnectedProps<typeof connector>) => {
createTag({name: tagName.trim(), color}).then((tag: TagModel) => {
if (tag) {
addTag(tag);
setShowTagsDialog(false);
}
});
}
Expand Down

0 comments on commit 1bad714

Please sign in to comment.