Browse Source

refactor(gui-v2): replace `getPlainText` with `getHTMLEncodedText`

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3338/head
Pranav C 2 years ago
parent
commit
229a664eed
  1. 5
      packages/nc-gui-v2/composables/useExpandedFormStore.ts

5
packages/nc-gui-v2/composables/useExpandedFormStore.ts

@ -14,6 +14,7 @@ import {
useProvideSmartsheetRowStore,
} from '#imports'
import type { Row } from '~/composables'
import { getHTMLEncodedText } from '~/utils'
const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref<TableType>, row: Ref<Row>) => {
const { $e, $state, $api } = useNuxtApp()
@ -156,8 +157,8 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
fk_model_id: meta.value.id,
column_name: key,
row_id: id,
value: getPlainText(updateOrInsertObj[key]),
prev_value: getPlainText(row.value.oldRow[key]),
value: getHTMLEncodedText(updateOrInsertObj[key]),
prev_value: getHTMLEncodedText(row.value.oldRow[key]),
})
.then(() => {})
}

Loading…
Cancel
Save