add review suggestion
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
This commit is contained in:
+7
-5
@@ -80,11 +80,13 @@ export const FeedbackResponseTable = (props: FeedbackResponseTableProps) => {
|
||||
width: '35%',
|
||||
render: (response: ResponseRow) => (
|
||||
<>
|
||||
{response?.response &&
|
||||
response.response.length > 0 &&
|
||||
response.response
|
||||
?.split(',')
|
||||
.map(res => <Chip key={res} size="small" label={res} />)}
|
||||
{(response.response || '')
|
||||
.split(',')
|
||||
.map(v => v.trim()) // removes whitespace
|
||||
.filter(Boolean) // removes accidental empty entries
|
||||
.map(res => (
|
||||
<Chip key={res} size="small" label={res} />
|
||||
))}
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user