Merge pull request #1978 from ecency/nt/notification-crash-fix

NT - Notification bug fix
This commit is contained in:
Feruz M 2021-06-21 22:37:08 +03:00 committed by GitHub
commit e19ad18e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ const PostDisplayView = ({
useEffect(() => {
if (post) {
const _tags = post.json_metadata ? post.json_metadata.tags : [];
const _tags = get(post.json_metadata, 'tags', []);
if (post.category && _tags[0] !== post.category) {
_tags.splice(0, 0, post.category);
}