Fix for non existent TLR
This commit is contained in:
parent
207e7bb646
commit
df1fe11d60
@ -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<TLRProps> = ({ content, position, page, loading, reload }) => {
|
||||
<div ref={containerRef} id="KH_FE_FPLAN" className="p2">
|
||||
<div id="TLR">
|
||||
<div>
|
||||
<pre>{content}</pre>
|
||||
<pre>{typeof content !== 'string' ? 'No TLR exists' : content}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user