Handle Jam's garbage internet on mod queue loading
This commit is contained in:
parent
10ecf63fef
commit
059147802b
@ -192,9 +192,16 @@ export default function () {
|
|||||||
|
|
||||||
if (queueType !== queue_type) setQueue(queueType);
|
if (queueType !== queue_type) setQueue(queueType);
|
||||||
|
|
||||||
const queueReq = await fetch(
|
let queueReq: Response;
|
||||||
`/api/mod-queue/list?before=${before}&showClosed=${show_closed}&type=${queueType}`,
|
|
||||||
);
|
try {
|
||||||
|
queueReq = await fetch(
|
||||||
|
`/api/mod-queue/list?before=${before}&showClosed=${show_closed}&type=${queueType}`,
|
||||||
|
);
|
||||||
|
} catch {
|
||||||
|
alert("Failed to load mod queue");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!queueReq.ok) {
|
if (!queueReq.ok) {
|
||||||
const errorData: { error: string } = await queueReq.json();
|
const errorData: { error: string } = await queueReq.json();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user