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) +})