From 3d4e0faf6059356db6fbf947b2dab9b92f35d895 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 28 Sep 2024 21:10:41 +0300 Subject: [PATCH] Change id/key of rows/cells --- src/hooks/useScheduleTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useScheduleTable.js b/src/hooks/useScheduleTable.js index 44bd770..278d33c 100644 --- a/src/hooks/useScheduleTable.js +++ b/src/hooks/useScheduleTable.js @@ -49,7 +49,7 @@ export default function useScheduleTable({ ...showHeader ? [{ id: 'header-'.concat(getTime(date).toString()), cells: [{ - id: 1, + id: 'header', attributes: { colSpan: header.length, }, @@ -59,7 +59,7 @@ export default function useScheduleTable({ ...showSlot ? [{ id: 'slot-'.concat(getTime(date).toString()), cells: [{ - id: 1, + id: 'timeslot', timeSlot: { start: date, end: nextDate,