Update frontend/src/pages/Tasks.vue

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

View File

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