fix(striker-ui): set query param for fetch screenshot explicitly

main
Tsu-ba-me 1 year ago
parent bbb6c96ece
commit fce5bc5c11
  1. 2
      striker-ui/components/Display/Preview.tsx
  2. 2
      striker-ui/pages/index.tsx

@ -121,7 +121,7 @@ const Preview: FC<PreviewProps> = ({
(async () => { (async () => {
try { try {
const response = await fetch( const response = await fetch(
`${API_BASE_URL}/server/${serverUUID}?ss`, `${API_BASE_URL}/server/${serverUUID}?ss=1`,
{ {
method: 'GET', method: 'GET',
headers: { headers: {

@ -154,7 +154,7 @@ const Dashboard: FC = () => {
}; };
fetchJSON<{ screenshot: string }>( fetchJSON<{ screenshot: string }>(
`${API_BASE_URL}/server/${serverUUID}?ss`, `${API_BASE_URL}/server/${serverUUID}?ss=1`,
) )
.then(({ screenshot }) => { .then(({ screenshot }) => {
item.screenshot = screenshot; item.screenshot = screenshot;

Loading…
Cancel
Save