Skip to content

Commit

Permalink
Extra checks for attributes (#2291)
Browse files Browse the repository at this point in the history
* Add check for primary key

* Add extra checks
  • Loading branch information
Alex-Tideman authored Aug 29, 2024
1 parent b2bc572 commit bcde92d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/lib/components/event/event-summary-row.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@
{/if}
</div>
{/if}
<EventDetailsRow
{...primaryAttribute}
{attributes}
class="invisible h-0 w-0 md:visible md:h-auto md:w-auto"
/>
{#if primaryAttribute?.key}
<EventDetailsRow
{...primaryAttribute}
{attributes}
class="invisible h-0 w-0 md:visible md:h-auto md:w-auto"
/>
{/if}
{#if nonPendingActivityAttempt}
<EventDetailsRow
key="attempt"
Expand All @@ -172,7 +174,7 @@
class="invisible h-0 w-0 md:visible md:h-auto md:w-auto"
/>
{/if}
{#if compact}
{#if compact && secondaryAttribute?.key}
<EventDetailsRow
{...secondaryAttribute}
{attributes}
Expand Down

0 comments on commit bcde92d

Please sign in to comment.