From 33834292181fde8075a0f555892a457991fd1f11 Mon Sep 17 00:00:00 2001 From: Clark Sell Date: Tue, 26 Jul 2022 11:09:31 -0500 Subject: [PATCH] feat: removes null record --- src/routes/partners/my-network/__layout.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/partners/my-network/__layout.svelte b/src/routes/partners/my-network/__layout.svelte index 2051891fc..dee749620 100644 --- a/src/routes/partners/my-network/__layout.svelte +++ b/src/routes/partners/my-network/__layout.svelte @@ -9,7 +9,9 @@ load: async function load({ fetch }) { const { queryMyNetwork } = partnerNetworkApi(fetch); - const contacts = await queryMyNetwork().then((r) => sortBy(r, 'createdAt').reverse()); + const contacts = await queryMyNetwork() + .then((c) => c.filter((c) => c !== null)) + .then((r) => sortBy(r, 'createdAt').reverse()); return { stuff: {