- updated bando preview by admin;

This commit is contained in:
Vitalii Kiiko
2024-10-22 13:28:40 +02:00
parent 81f6ca04c3
commit f118450847
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import parse from 'html-react-parser';
import { isNil } from 'ramda';
const renderHtmlContent = (content = '') => parse(content);
const renderHtmlContent = (content = '') => !isNil(content) ? parse(content) : '';
export default renderHtmlContent;

View File

@@ -176,7 +176,9 @@ const BandoView = () => {
<h2>{__('Allegati', 'gepafin')}</h2>
<div className="row rowContent">
<ul>
{data.docs.map((o, i) => <li key={i}>
{data.docs
.filter(o => o.source === 'CALL')
.map((o, i) => <li key={i}>
<a href={o.filePath} target="_blank" rel="noreferrer">{o.name}</a>
</li>)}
</ul>