From 180ec5e29dcd97eda6c23aff4b956188dbd5111a Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 18 Sep 2024 10:47:34 +0200 Subject: [PATCH] Don't display Scenarii menu if no scenario --- frontend/fic/src/lib/components/NavThemes.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/fic/src/lib/components/NavThemes.svelte b/frontend/fic/src/lib/components/NavThemes.svelte index 5b9b90d5..d006dc8c 100644 --- a/frontend/fic/src/lib/components/NavThemes.svelte +++ b/frontend/fic/src/lib/components/NavThemes.svelte @@ -14,6 +14,7 @@ import { myThemes, themes } from '$lib/stores/mythemes.js'; +{#if $themes.length > 0 && ($themes[0].id != 0 || $themes.length > 1)} @@ -54,6 +55,7 @@ +{/if} {#if $themesStore && $themesStore["0"] && $themesStore["0"].exercices}