fix the collabraion
This commit is contained in:
parent
ba7a2499f1
commit
879e78eb59
|
|
@ -432,17 +432,18 @@ export function NetworkGraph({ onNodeClick }: NetworkGraphProps) {
|
||||||
const responseData = JSON.parse(res.data);
|
const responseData = JSON.parse(res.data);
|
||||||
const fieldValues =
|
const fieldValues =
|
||||||
JSON.parse(responseData?.getvalue)?.[0]?.FieldValues || [];
|
JSON.parse(responseData?.getvalue)?.[0]?.FieldValues || [];
|
||||||
|
|
||||||
// Filter out image fields and find description
|
// Filter out image fields and find description
|
||||||
const filteredFields = fieldValues.filter(
|
const filteredFields = fieldValues.filter(
|
||||||
(field: any) =>
|
(field: any) =>
|
||||||
!["image", "img", "full_name"].includes(field.F.toLowerCase()),
|
!["image", "img", "full_name", "about_collaboration"].includes(
|
||||||
|
field.F.toLowerCase(),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
const descriptionField = fieldValues.find(
|
const descriptionField = fieldValues.find(
|
||||||
(field: any) =>
|
(field: any) =>
|
||||||
field.F.toLowerCase().includes("description") ||
|
field.F.toLowerCase().includes("description") ||
|
||||||
field.F.toLowerCase().includes("collaboration") ||
|
field.F.toLowerCase().includes("about_collaboration") ||
|
||||||
field.F.toLowerCase().includes("about"),
|
field.F.toLowerCase().includes("about"),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user