From df1fe11d607b33ddb220d298475d7da9143f2218 Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Tue, 28 Apr 2026 19:52:00 +0200 Subject: [PATCH] Fix for non existent TLR --- Gauge/src/components/tlr/tlr.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gauge/src/components/tlr/tlr.tsx b/Gauge/src/components/tlr/tlr.tsx index 04c0164..5106683 100644 --- a/Gauge/src/components/tlr/tlr.tsx +++ b/Gauge/src/components/tlr/tlr.tsx @@ -2,7 +2,7 @@ import { createRef, FC, useEffect } from 'react'; import Controls from '../controls/controls'; interface TLRProps { - content: string; + content?: string; position: number; page: number; loading: boolean; @@ -63,7 +63,7 @@ const TLR: FC = ({ content, position, page, loading, reload }) => {
-
{content}
+
{typeof content !== 'string' ? 'No TLR exists' : content}