Update frontend/src/pages/Deals.vue

Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
This commit is contained in:
rajabxahmd 2025-03-19 16:09:46 +05:30 committed by GitHub
parent a0f2559a65
commit 26703070c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,17 +387,11 @@ function parseRows(rows, columns = []) {
deals.value.data.rows.forEach((row) => { deals.value.data.rows.forEach((row) => {
_rows[row] = deal[row] _rows[row] = deal[row]
let fieldType; let fieldname = deals.value.data.view_type === 'kanban' ? 'fieldname' : 'key'
if (deals.value.data.view_type === 'kanban') { let fieldtype = deals.value.data.view_type === 'kanban' ? 'fieldtype' : 'type'
fieldType = columns?.find( let fieldType = columns?.find(
(col) => (col.fieldname || col.value) == row, (col) => (col[fieldname] || col.value) == row,
)?.fieldtype )?.[fieldtype]
}
else {
fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
}
if ( if (
fieldType && fieldType &&