From 1a86ec4e42b55e257359e27b16c7c1aa54b1a992 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Thu, 20 Nov 2025 09:30:25 -0600 Subject: [PATCH] Fix worker transfer in custom-transfer-directory --- .../custom-components/WorkerDirectoryTab.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin-flex-ts-template-v2/src/feature-library/custom-transfer-directory/custom-components/WorkerDirectoryTab.tsx b/plugin-flex-ts-template-v2/src/feature-library/custom-transfer-directory/custom-components/WorkerDirectoryTab.tsx index 7a21449eb..6425c708a 100644 --- a/plugin-flex-ts-template-v2/src/feature-library/custom-transfer-directory/custom-components/WorkerDirectoryTab.tsx +++ b/plugin-flex-ts-template-v2/src/feature-library/custom-transfer-directory/custom-components/WorkerDirectoryTab.tsx @@ -148,7 +148,9 @@ const WorkerDirectoryTab = (props: OwnProps) => { useEffect(() => { if (Array.isArray(props.workers)) { // If Flex UI already fetched workers, use it - setFetchedWorkers(props.workers); + // We need to use the source object to get the necessary properties + const formattedWorkers = props.workers?.map((item: any) => item._source || item); + setFetchedWorkers(formattedWorkers); } }, [props.workers]);