Skip to content

Commit

Permalink
conditionally render the title block
Browse files Browse the repository at this point in the history
Only render the h4 block if the title is non-zero length
  • Loading branch information
jamiebrynes7 committed Feb 1, 2024
1 parent cb00249 commit 9edc418
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/TodoistQuery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
}
</script>

<h4 class="todoist-query-title">{title}</h4>
{#if title.length != 0}
<h4 class="todoist-query-title">{title}</h4>
{/if}
<div
class={fetching
? "edit-block-button todoist-refresh-button todoist-refresh-disabled"
Expand Down

0 comments on commit 9edc418

Please sign in to comment.