pl-fe: Disable some queries when unauthenticated

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-10-25 20:41:14 +02:00
parent e546d787f0
commit d3b5078030
3 changed files with 7 additions and 1 deletions

View File

@ -289,6 +289,7 @@ const MediaGallery: React.FC<IMediaGallery> = (props) => {
height,
visible,
} = props;
const [width, setWidth] = useState<number>(defaultWidth);
const node = useRef<HTMLDivElement>(null);