Browse Source

fix(nc-gui): apply json parse for string before spread

pull/5307/head
Wing-Kam Wong 2 years ago
parent
commit
ffc68895de
  1. 2
      packages/nc-gui/components/cell/Currency.vue

2
packages/nc-gui/components/cell/Currency.vue

@ -35,7 +35,7 @@ const currencyMeta = computed(() => {
return { return {
currency_locale: 'en-US', currency_locale: 'en-US',
currency_code: 'USD', currency_code: 'USD',
...(column.value.meta ? column.value.meta : {}), ...((typeof column.value.meta === 'string' ? JSON.parse(column.value.meta) : column.value.meta) || {}),
} }
}) })

Loading…
Cancel
Save