Skip to content

Commit 0a29d9a

Browse files
committed
fix(fe): gate pending/resuming channel layouts on channel establishment
Children access $establishedChannelStore which throws if the channel isn't set yet. Gate rendering on $channelStore !== undefined to ensure the channel is established before children mount.
1 parent 2bba1f0 commit 0a29d9a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/frontend/src/routes/(new-styling)/(pending-channel)/+layout.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
});
1414
</script>
1515

16-
{@render children()}
16+
{#if $channelStore !== undefined}
17+
{@render children()}
18+
{/if}

src/frontend/src/routes/(new-styling)/(resuming-channel)/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
});
2626
</script>
2727

28-
{#if pendingChannelOrigin !== null}
28+
{#if pendingChannelOrigin !== null && $channelStore !== undefined}
2929
{@render children()}
3030
{:else}
3131
<Dialog>

0 commit comments

Comments
 (0)