Skip to content
Snippets Groups Projects
Commit 67ce15fc authored by alice grosch's avatar alice grosch
Browse files

Merge branch 'jupyterhub-share-base-staging' into 'jupyterhub-share-base-production'

Catch non existing backend service

See merge request jupyterjsc/k8s/config!326
parents 68721311 33a04e38
No related branches found
No related tags found
No related merge requests found
...@@ -50,8 +50,8 @@ define(["jquery", "home/utils"], function ( ...@@ -50,8 +50,8 @@ define(["jquery", "home/utils"], function (
let systemFlavors = window.flavorInfo[system]; let systemFlavors = window.flavorInfo[system];
if (!systemFlavors) { if (!systemFlavors) {
// Check if system should have flavor info but doesn't first // Check if system should have flavor info but doesn't first
let backend = systemInfo[system].backendService; let backend = (systemInfo[system] || {}).backendService;
if (backendInfo[backend].flavorsRequired || backendInfo[backend].userflavors) { if (backend && (backendInfo[backend].flavorsRequired || backendInfo[backend].userflavors)) {
// If so, we still want to create the flavor info to show the error message // If so, we still want to create the flavor info to show the error message
utils.createFlavorInfo(id, system); utils.createFlavorInfo(id, system);
utils.setLabAsNA(id, "due to flavor"); utils.setLabAsNA(id, "due to flavor");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment