diff --git a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/CuesheetBody.tsx b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/CuesheetBody.tsx index b61e05bfd..e994931ea 100644 --- a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/CuesheetBody.tsx +++ b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/CuesheetBody.tsx @@ -14,7 +14,6 @@ import { colourToHex, cssOrHexToColour } from 'ontime-utils'; import { RUNDOWN } from '../../../../common/api/constants'; import { useSelectedEventId } from '../../../../common/hooks/useSocket'; -import { lazyEvaluate } from '../../../../common/utils/lazyEvaluate'; import { getAccessibleColour } from '../../../../common/utils/styleUtils'; import { usePersistedCuesheetOptions } from '../../cuesheet.options'; @@ -36,17 +35,6 @@ export default function CuesheetBody({ rowModel, selectedRef, table }: CuesheetB const hidePast = usePersistedCuesheetOptions((state) => state.hidePast); const hideDelays = usePersistedCuesheetOptions((state) => state.hideDelays); - const getVisibleColumns = lazyEvaluate(() => table.getVisibleFlatColumns()); - const getColumnHash = lazyEvaluate(() => { - let columnHash = ''; - const columns = getVisibleColumns(); - - for (let i = 0; i < columns.length; i++) { - columnHash += `${columns[i].getIndex()}-${columns[i].getSize()} `; - } - return columnHash; - }); - let eventIndex = 0; // for the first event, it will be past if there is something selected let isPast = Boolean(selectedEventId); @@ -140,7 +128,6 @@ export default function CuesheetBody({ rowModel, selectedRef, table }: CuesheetB if (isOntimeEvent(entry)) { eventIndex++; const isSelected = key === selectedEventId; - const columnHash = getColumnHash(); if (isPast && hidePast) { return null; @@ -185,7 +172,6 @@ export default function CuesheetBody({ rowModel, selectedRef, table }: CuesheetB parentBgColour={parentBgColour} table={table} firstAfterBlock={firstAfterBlock} - columnHash={columnHash} /> ); } diff --git a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/EventRow.tsx b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/EventRow.tsx index 74a520cf1..bd2fb7772 100644 --- a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/EventRow.tsx +++ b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/EventRow.tsx @@ -28,8 +28,6 @@ interface EventRowProps { rowBgColour?: string; parentBgColour?: string; table: Table; - /** hack to force re-rendering of the row when the column sizes change */ - columnHash: string; firstAfterBlock: boolean; }