Browse Source

fix(nc-gui): formula rendering logic

pull/5659/head
Wing-Kam Wong 2 years ago
parent
commit
4472da3235
  1. 6
      packages/nc-gui/components/virtual-cell/Formula.vue

6
packages/nc-gui/components/virtual-cell/Formula.vue

@ -20,9 +20,9 @@ const urls = computed(() => replaceUrlsWithLink(result.value))
const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning, activateShowEditNonEditableFieldWarning } = const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning, activateShowEditNonEditableFieldWarning } =
useShowNotEditableWarning() useShowNotEditableWarning()
const renderResult = (result?: string | null) => { const renderResult = (result?: any) => {
if (!result) { if (!result || typeof result !== 'string') {
return '' return result
} }
// convert all date time values to local time // convert all date time values to local time
// the input is always YYYY-MM-DD hh:mm:ss+xx:yy // the input is always YYYY-MM-DD hh:mm:ss+xx:yy

Loading…
Cancel
Save