Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Fixes10290 complete iso contact roles #1360

Conversation

MalteIwanicki
Copy link

This needs to be merged when Geonodes #10367 gets merged.
We are changing 'Point of Contact' into a list, which is why we need this change to loop through a list of contacts
image

const extraItemsList = [
{
"label": "Point of Contact",
"value": <a href={`/messages/create/${resource?.poc?.pk}/`}> {(resource?.poc?.first_name !== "" && resource?.poc?.last_name !== "" ) ? (resource?.poc?.first_name + " " + resource?.poc?.last_name) : resource?.poc?.username} </a>
"value": resource?.poc.map(poc => <a href={`/messages/create/${poc.pk}/`}> {(poc.first_name !== "" && poc.last_name !== "") ? (poc.first_name + " " + poc.last_name) : poc.username} </a>).reduce((prev, curr) => [prev, ', ', curr])
},
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many closing braces

@ridoo
Copy link

ridoo commented Apr 28, 2023

PR can be closed as superseded by #1421

@giohappy giohappy closed this May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants