Skip to content

Commit

Permalink
fix: Only render rolie feed parts of distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Feb 8, 2024
1 parent 70bf113 commit 309b4a7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/lib/feedview/feed/distributions/Distributions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@

{#if $appStore.providerMetadata}
{#each $appStore.providerMetadata["distributions"] as distribution, index}
<Collapsible
header={`Distribution ${index + 1}`}
level="3"
open={$appStore.providerMetadata["distributions"].length === 1}
>
<Distribution {distribution} />
</Collapsible>
{#if distribution.rolie && distribution.rolie.feeds}
<Collapsible
header={`Distribution ${index + 1}`}
level="3"
open={$appStore.providerMetadata["distributions"].length === 1}
>
<Distribution {distribution} />
</Collapsible>
{/if}
{/each}
{/if}

0 comments on commit 309b4a7

Please sign in to comment.