From fce5bc5c110370ec796bc5424202f40570d9acd1 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 10 Aug 2023 12:39:00 -0400 Subject: [PATCH] fix(striker-ui): set query param for fetch screenshot explicitly --- striker-ui/components/Display/Preview.tsx | 2 +- striker-ui/pages/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx index 486706b9..e2c280fb 100644 --- a/striker-ui/components/Display/Preview.tsx +++ b/striker-ui/components/Display/Preview.tsx @@ -121,7 +121,7 @@ const Preview: FC = ({ (async () => { try { const response = await fetch( - `${API_BASE_URL}/server/${serverUUID}?ss`, + `${API_BASE_URL}/server/${serverUUID}?ss=1`, { method: 'GET', headers: { diff --git a/striker-ui/pages/index.tsx b/striker-ui/pages/index.tsx index 778fc754..a7deba39 100644 --- a/striker-ui/pages/index.tsx +++ b/striker-ui/pages/index.tsx @@ -154,7 +154,7 @@ const Dashboard: FC = () => { }; fetchJSON<{ screenshot: string }>( - `${API_BASE_URL}/server/${serverUUID}?ss`, + `${API_BASE_URL}/server/${serverUUID}?ss=1`, ) .then(({ screenshot }) => { item.screenshot = screenshot;