Skip to content

Commit

Permalink
feat: removes null record
Browse files Browse the repository at this point in the history
  • Loading branch information
theClarkSell committed Jul 26, 2022
1 parent 0d6b4b2 commit 3383429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/partners/my-network/__layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 3383429

Please sign in to comment.