From bc1804ad18dc464230bed5b51acbf34ec0cd69a2 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 20 Mar 2026 17:09:52 +0100 Subject: [PATCH] Fix vsplit side-by-side rendering: invalid TypeScript type annotation Changed `typeof grid.zones[][]` to `GridZone[][]` which was causing a silent build error, preventing the vsplit zone grouping logic from being compiled into the production bundle. Co-Authored-By: Claude Opus 4.6 --- admin-lehrer/components/grid-editor/GridEditor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin-lehrer/components/grid-editor/GridEditor.tsx b/admin-lehrer/components/grid-editor/GridEditor.tsx index 2d2a25a..9b56f53 100644 --- a/admin-lehrer/components/grid-editor/GridEditor.tsx +++ b/admin-lehrer/components/grid-editor/GridEditor.tsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useState } from 'react' import { useGridEditor } from './useGridEditor' +import type { GridZone } from './types' import { GridToolbar } from './GridToolbar' import { GridTable } from './GridTable' import { GridImageOverlay } from './GridImageOverlay' @@ -190,7 +191,7 @@ export function GridEditor({ sessionId, onNext }: GridEditorProps) {
{(() => { // Group consecutive zones with same vsplit_group - const groups: typeof grid.zones[][] = [] + const groups: GridZone[][] = [] for (const zone of grid.zones) { const prev = groups[groups.length - 1] if (