1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5999: Fix filters by labels on FSunstone (#2394)

This commit is contained in:
Frederick Borges 2022-12-05 11:21:24 +01:00 committed by GitHub
parent e4199c278e
commit 7ba48635e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,11 @@ const COLUMNS = [
{
Header: T.Label,
id: 'label',
accessor: 'USER_TEMPLATE.LABELS',
accessor: (row) => {
const labels = row?.USER_TEMPLATE?.LABELS?.split(',') ?? []
return labels.map((label) => label?.trim()?.toUpperCase()).join(',')
},
filter: 'includesSome',
},
{ Header: T.Type, id: 'type', accessor: getType },