8315-devToTest #1094

Merged
alexm merged 253 commits from 8315-devToTest into test 2024-12-18 10:31:55 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit fdd947fbbb - Show all commits

View File

@ -41,7 +41,11 @@ const columns = computed(() => [
options: expenses.value,
model: 'expenseFk',
optionValue: 'id',
optionLabel: (row) => `${row.id}: ${row.name}`,
optionLabel: (row) => {
if (isNaN(row)) return `${row.id}: ${row.name}`;
let label = expenses.value.find((expense) => expense.id == row);
return `${label.id}: ${label.name}`;
},
sortable: true,
align: 'left',
},