Skip to content

Commit

Permalink
Don't fail when presented with a profile without options
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Nov 14, 2024
1 parent 55e9dbe commit 3435748
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
},
]
4 changes: 3 additions & 1 deletion src/ProfileForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function Form() {
<span>{description}</span>
</div>

<ProfileOptions profile={slug} config={profile_options} />
{profile_options && (
<ProfileOptions profile={slug} config={profile_options} />
)}
</div>
</div>
);
Expand Down

0 comments on commit 3435748

Please sign in to comment.