From 8ac4eb6bf810d747eb2c6f4c1c0ca21a9ffd603d Mon Sep 17 00:00:00 2001 From: henrikmv Date: Tue, 15 Oct 2024 09:50:45 +0200 Subject: [PATCH] fix: improve flow type --- src/core_modules/capture-core/converters/clientToList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/capture-core/converters/clientToList.js b/src/core_modules/capture-core/converters/clientToList.js index e8ffb86ef5..e72b837179 100644 --- a/src/core_modules/capture-core/converters/clientToList.js +++ b/src/core_modules/capture-core/converters/clientToList.js @@ -87,7 +87,7 @@ function convertStatusForDisplay(clientValue: Object) { ); } -function convertOrgUnitForDisplay(clientValue: string | Object) { +function convertOrgUnitForDisplay(clientValue: string | {id: string}) { const orgUnitId = typeof clientValue === 'string' ? clientValue : clientValue.id; return (