fix(nc-gui): add debug console

This commit is contained in:
Ramesh Mane
2025-03-05 14:51:11 +00:00
parent 93c8c79fa1
commit 36b5081c6f
2 changed files with 12 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import dayjs from 'dayjs'
import type { AttachmentType, ColumnType, LinkToAnotherRecordType, SelectOptionsType } from 'nocodb-sdk'
import { UITypes, getDateFormat, getDateTimeFormat, populateUniqueFileName } from 'nocodb-sdk'
import { ColumnHelper, UITypes, getDateFormat, getDateTimeFormat, populateUniqueFileName } from 'nocodb-sdk'
import { SilentTypeConversionError } from '~/error/silent-type-conversion.error'
import { SelectTypeConversionError } from '~/error/select-type-conversion.error'
import { ComputedTypePasteError } from '~/error/computed-type-paste.error'
@@ -26,6 +26,11 @@ export default function convertCellData(
// return null if value is empty
if (value === '' && to !== UITypes.Attachment) return null
// Todo: remove after testing
const serializedValue = ColumnHelper.serializeValue(value, column)
console.log('serializedValue', serializedValue, value, column.uidt)
switch (to) {
case UITypes.SingleLineText:
case UITypes.LongText: