fix: cannot add like field in listview

This commit is contained in:
Shariq Ansari 2025-01-30 17:19:17 +05:30
parent b21d2aea6f
commit 326b553922

View File

@ -210,7 +210,7 @@ const fields = computed(() => {
if (!allFields) return []
return allFields.filter((field) => {
return !columns.value.find((column) => column.key === field.value)
return !columns.value.find((column) => column.key === field.fieldname)
})
})
@ -218,8 +218,8 @@ function addColumn(c) {
let align = ['Float', 'Int', 'Percent', 'Currency'].includes(c.type) ? 'right' : 'left'
let _column = {
label: c.label,
type: c.type,
key: c.value,
type: c.fieldtype,
key: c.fieldname,
width: '10rem',
align,
}