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 () => {
try {
const response = await fetch(
`${API_BASE_URL}/server/${serverUUID}?ss`,
`${API_BASE_URL}/server/${serverUUID}?ss=1`,
{
method: 'GET',
headers: {

@ -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;

Loading…
Cancel
Save