Skip to content

Commit f5379a8

Browse files
committed
fix logic error in outbound network polycies
1 parent fb9e3cb commit f5379a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/components/NetworkPolicy.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
`)
7272
)
7373
);
74+
75+
$inspect($data.networkPolicy.outbound);
7476
</script>
7577

7678
<Heading level="2" size="medium" spacing>Network policy</Heading>
@@ -112,7 +114,7 @@
112114

113115
<div>
114116
<Heading level="3" size="small" spacing>Outbound</Heading>
115-
{#if $data.networkPolicy.outbound.rules.length > 0 && $data.networkPolicy.outbound.external.length > 0}
117+
{#if $data.networkPolicy.outbound.rules.length > 0 || $data.networkPolicy.outbound.external.length > 0}
116118
<Heading level="4" size="xsmall" spacing>External</Heading>
117119
<ul>
118120
{#each Object.entries(Object.groupBy($data.networkPolicy.outbound.external, (e) => e.__typename ?? 'none')) as [type, list = []] (type)}

0 commit comments

Comments
 (0)