From 775fd2e5e392ec3f4c4401a60cf1f74e4f9ef9a2 Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 21 Sep 2023 16:12:53 +0300 Subject: [PATCH] fix: currency locale list Signed-off-by: mertmit --- .../components/smartsheet/column/CurrencyOptions.vue | 10 +++++----- packages/nc-gui/utils/currencyUtils.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/CurrencyOptions.vue b/packages/nc-gui/components/smartsheet/column/CurrencyOptions.vue index 266d021ac4..63ce4816bd 100644 --- a/packages/nc-gui/components/smartsheet/column/CurrencyOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/CurrencyOptions.vue @@ -49,11 +49,7 @@ setAdditionalValidations({ const currencyList = currencyCodes || [] -const currencyLocaleList = [] - -currencyLocales().then((locales) => { - currencyLocaleList.push(...locales) -}) +const currencyLocaleList = ref<{ text: string; value: string }[]>([]) const isMoney = computed(() => vModel.value.dt === 'money') @@ -72,6 +68,10 @@ vModel.value.meta = { currency_code: 'USD', ...vModel.value.meta, } + +currencyLocales().then((locales) => { + currencyLocaleList.value.push(...locales) +})