From 326b55392290b802e565729323d592514212c69c Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 30 Jan 2025 17:19:17 +0530 Subject: [PATCH] fix: cannot add like field in listview --- frontend/src/components/ColumnSettings.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ColumnSettings.vue b/frontend/src/components/ColumnSettings.vue index 438e7eaf..b358ca4f 100644 --- a/frontend/src/components/ColumnSettings.vue +++ b/frontend/src/components/ColumnSettings.vue @@ -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, }