Change id/key of rows/cells

This commit is contained in:
Vencislav Atanasov 2024-09-28 21:10:41 +03:00
parent 8f3fedcf07
commit 3d4e0faf60
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ export default function useScheduleTable({
...showHeader ? [{ ...showHeader ? [{
id: 'header-'.concat(getTime(date).toString()), id: 'header-'.concat(getTime(date).toString()),
cells: [{ cells: [{
id: 1, id: 'header',
attributes: { attributes: {
colSpan: header.length, colSpan: header.length,
}, },
@ -59,7 +59,7 @@ export default function useScheduleTable({
...showSlot ? [{ ...showSlot ? [{
id: 'slot-'.concat(getTime(date).toString()), id: 'slot-'.concat(getTime(date).toString()),
cells: [{ cells: [{
id: 1, id: 'timeslot',
timeSlot: { timeSlot: {
start: date, start: date,
end: nextDate, end: nextDate,