From edb48a2fc7a1c455ce39469e73e2f6701bd5f380 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 6 Jun 2024 14:57:50 -0500 Subject: [PATCH] consider custom fields when loading operator main field (#1049) --- apps/client/src/features/operator/Operator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/features/operator/Operator.tsx b/apps/client/src/features/operator/Operator.tsx index 636f8f5d5..74c6d9404 100644 --- a/apps/client/src/features/operator/Operator.tsx +++ b/apps/client/src/features/operator/Operator.tsx @@ -171,7 +171,7 @@ export default function Operator() { return null; } - const mainField = main ? entry?.[main] || entry.title : entry.title; + const mainField = main ? getPropertyValue(entry, main) ?? '' : entry.title; const secondaryField = getPropertyValue(entry, secondary) ?? ''; const subscribedData = entry.custom[subscribe];