Skip to content

Commit

Permalink
[frontend] fix redirection link to entity for WidgetDistributionList (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Mar 29, 2024
1 parent c08cb0e commit 0b3dba3
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ const WidgetDistributionList = ({
{data.map((entry, key) => {
let link: string | null = null;
if (entry.type !== 'User' || hasSettingAccess) {
link = entry.id ? computeLink(entry) : null;
const node: {
id: string;
entity_type: string;
relationship_type?: string;
from?: { entity_type: string; id: string };
} = {
id: entry.id,
entity_type: entry.type,
};
link = entry.id ? computeLink(node) : null;
}
let linkProps = {};
if (link) {
Expand Down

0 comments on commit 0b3dba3

Please sign in to comment.