From b03cb0a1e62ecad7de816ab4e2f7bb93ec1f28fe Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Sat, 28 Feb 2026 00:01:01 +0100 Subject: [PATCH] Fix Landkarte tab crash: variable name shadowed isInRag function Local variables named 'isInRag' shadowed the outer function, causing "isInRag is not a function" error. Renamed to regInRag/codeInRag. Co-Authored-By: Claude Opus 4.6 --- admin-lehrer/app/(admin)/ai/rag/page.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/admin-lehrer/app/(admin)/ai/rag/page.tsx b/admin-lehrer/app/(admin)/ai/rag/page.tsx index c232ea4..7afbd8f 100644 --- a/admin-lehrer/app/(admin)/ai/rag/page.tsx +++ b/admin-lehrer/app/(admin)/ai/rag/page.tsx @@ -2466,17 +2466,17 @@ export default function RAGPage() {
{regs.map((reg) => { - const isInRag = isInRag(reg.code) + const regInRag = isInRag(reg.code) return (
{reg.code} - {isInRag ? ( + {regInRag ? ( RAG ) : ( @@ -2513,12 +2513,12 @@ export default function RAGPage() {
{group.regulations.map((code) => { const reg = REGULATIONS.find(r => r.code === code) - const isInRag = isInRag(code) + const codeInRag = isInRag(code) return ( - {isInRag ? '✓ ' : '✗ '}{code} + {codeInRag ? '✓ ' : '✗ '}{code} ) })}