Ensured tags returned from server are used after editing short URL tags in order to use the normalized values

This commit is contained in:
Alejandro Celaya
2018-09-16 12:48:28 +02:00
parent fc1af04243
commit 7d665f3933
2 changed files with 5 additions and 5 deletions

View File

@@ -40,8 +40,8 @@ export class EditTagsModalComponent extends React.Component {
return;
}
const { shortUrlTagsEdited, shortUrl } = this.props;
const { tags } = this.state;
const { shortUrlTagsEdited, shortUrl, shortUrlTags } = this.props;
const { tags } = shortUrlTags;
shortUrlTagsEdited(shortUrl.shortCode, tags);
};