fix: prevent empty recipe notes from displaying
All checks were successful
CI / update (push) Successful in 1m13s
All checks were successful
CI / update (push) Successful in 1m13s
Add trim check to ensure recipe notes only render when they contain non-whitespace content, preventing empty "Notiz" boxes from appearing on recipes.
This commit is contained in:
@@ -350,7 +350,7 @@ h4{
|
|||||||
isLoggedIn={!!data.session?.user}
|
isLoggedIn={!!data.session?.user}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{#if data.note}
|
{#if data.note && data.note.trim()}
|
||||||
<RecipeNote note={data.note}></RecipeNote>
|
<RecipeNote note={data.note}></RecipeNote>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user