Open VadSiam opened 5 years ago
https://github.com/rogotsky/kmu-filters/blob/87cdc835753a2d8cd6520c66e3e8555c7e95ad81/src/components/Posts/Post.js#L19
Please keep HTML component clean as possible (it makes the code easy to read): const documentTagsPresent = !!data.document_tags.length; const tagsString = data.document_tags.join(', '); and then {documentTagsPresent &&
Tags: {tagsString}
the same in strings 22 and 23
@VadSiam Fixed
https://github.com/rogotsky/kmu-filters/blob/87cdc835753a2d8cd6520c66e3e8555c7e95ad81/src/components/Posts/Post.js#L19
Please keep HTML component clean as possible (it makes the code easy to read): const documentTagsPresent = !!data.document_tags.length; const tagsString = data.document_tags.join(', '); and then {documentTagsPresent &&
Tags: {tagsString}
}the same in strings 22 and 23