Untitled
unknown
javascript
9 months ago
850 B
6
Indexable
{cmpsOrder.map((cmp, idx) => (
<td key={idx} className='data-cell'>
<DynamicCmp
cmp={cmp}
board={board}
info={task[cmp]} // Pass the current value for this key
onUpdate={(data) => {
logActivity(group, task, null, {
action: 'labelChanged',
message: `${cmp.charAt(0).toUpperCase() + cmp.slice(1)}`,
free_txt: `Changed to ${data.title}`,
})
updateBoard(group.id, task.id, { key: cmp, value: data.id })
}}
/>
</td>
))}Editor is loading...
Leave a Comment