Skip to content
Snippets Groups Projects
Commit 66ca5323 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

MensaplanPanel: Fixed handling of empty plans

parent f247a8ee
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ const MensaplanPanel = (props: {definition: MensaPanelDefinition}) => { ...@@ -52,7 +52,7 @@ const MensaplanPanel = (props: {definition: MensaPanelDefinition}) => {
// Request the API // Request the API
const request = await fetch(`https://infoscreen.oh14.de/canteen-menu/v3/canteens/${props.definition.canteenId}/${fetchFor}`); const request = await fetch(`https://infoscreen.oh14.de/canteen-menu/v3/canteens/${props.definition.canteenId}/${fetchFor}`);
if(!request.ok) { if(!(request.status === 200)) {
menus.current = []; menus.current = [];
specials.current = []; specials.current = [];
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment