Skip to content

Commit

Permalink
Merge pull request #1709 from akvo/bug/ps-stakeholder-map
Browse files Browse the repository at this point in the history
PS: Rename strength column to initiatives & fix tags filtering FE side
  • Loading branch information
ifirmawan authored Nov 6, 2023
2 parents 3edd23b + 4c67129 commit d06f5e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const StakeholderMapTable = ({
dataIndex: 'focalPoints',
},
{
title: t`Strengths`,
title: t`Initiatives`,
dataIndex: 'strengths',
},
{
Expand Down Expand Up @@ -264,9 +264,12 @@ const StakeholderMapTable = ({
`/organisations?page=${page}&${queryString}`
)
const { results, counts } = data || {}
const _entities = results.map((r) => ({
...r,
}))
const _entities = results.filter((r) => {
if (tags.length) {
return r.tags.filter(({ tag }) => tags.includes(tag)).length
}
return r
})
setEntities(_entities)

if (tableParams?.pagination?.total === undefined) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@
}
&:nth-of-type(3) .ant-btn.ant-btn-link span,
&:nth-of-type(6) > div {
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis;
text-wrap: wrap;
text-align: left;
padding: 10px 0;
}
Expand Down

0 comments on commit d06f5e1

Please sign in to comment.