From 65480eb49250765e3b788147fb08d4a950f15496 Mon Sep 17 00:00:00 2001 From: Etienne <45695613+etiennejouan@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:53:42 +0100 Subject: [PATCH] Currency input field - fix (#16140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currency field used to have default value, but default value on field is not mandatory. Defaulf default value logic has been removed. Also test all field type input when empty. ✅ --- .../ui/meta-types/input/components/CurrencyFieldInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx index 6a2252009d..c10275d04b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx @@ -28,7 +28,7 @@ export const CurrencyFieldInput = () => { const defaultCurrencyCodeWithoutSQLQuotes = ( defaultValue as FieldCurrencyValue - ).currencyCode.replace(/'/g, '') as CurrencyCode; + )?.currencyCode?.replace(/'/g, '') as CurrencyCode; const defaultCurrencyCodeIsNotEmpty = isNonEmptyString( defaultCurrencyCodeWithoutSQLQuotes,