"include/composable_kernel/utility/Array.hpp" did not exist on "a0584426ff5b6b8b448c971b97c9b1a4d86ba010"
Commit 9b27d952 authored by Jannik Streidl's avatar Jannik Streidl
Browse files

better error handling

parent 06f53a68
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
function handleClick() { function handleClick() {
toggleVisibility(); toggleVisibility();
} }
let hasValidNotes = Array.isArray(RELEASE_NOTES) && RELEASE_NOTES.length > 0;
</script> </script>
<Modal bind:show> <Modal bind:show>
...@@ -44,7 +46,7 @@ ...@@ -44,7 +46,7 @@
</div> </div>
<hr class=" dark:border-gray-800" /> <hr class=" dark:border-gray-800" />
<div class="p-4 overflow-y-scroll max-h-80"> <div class="p-4 overflow-y-scroll max-h-80">
{#if RELEASE_NOTES.length === 0} {#if !hasValidNotes}
<div class="pt-10 text-center font-bold">There are no notes given.</div> <div class="pt-10 text-center font-bold">There are no notes given.</div>
<div class="pb-10 text-center"> <div class="pb-10 text-center">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment