From 34357481a054b58b81c7da8540c73dd7018840d1 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 14 Nov 2024 15:50:02 -0800 Subject: [PATCH] Don't fail when presented with a profile without options --- jupyterhub_config.py | 5 +++++ src/ProfileForm.jsx | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/jupyterhub_config.py b/jupyterhub_config.py index 61e997a..68be2b2 100644 --- a/jupyterhub_config.py +++ b/jupyterhub_config.py @@ -264,4 +264,9 @@ } }, }, + { + "display_name": "Profile without any options", + "description": "Just a profile that doesn't contain any profile options", + "kubespawner_override": {"image": "pangeo/pangeo-notebook:2023.09.11"}, + }, ] diff --git a/src/ProfileForm.jsx b/src/ProfileForm.jsx index 9d4ff55..42a0a17 100644 --- a/src/ProfileForm.jsx +++ b/src/ProfileForm.jsx @@ -92,7 +92,9 @@ function Form() { {description} - + {profile_options && ( + + )} );