From de16fe2cce5c418fa4281c8fb33291347fdc2d0f Mon Sep 17 00:00:00 2001 From: vatsal Date: Tue, 3 Dec 2024 15:49:22 +0530 Subject: [PATCH] fix: url query filters --- src/containers/Issues.tsx | 37 +++++++++++++++++++++---------------- src/lib/utils/index.ts | 4 ++-- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/containers/Issues.tsx b/src/containers/Issues.tsx index 18d2870..b16008e 100644 --- a/src/containers/Issues.tsx +++ b/src/containers/Issues.tsx @@ -47,22 +47,27 @@ const Issues = () => { return (
- {data.items.map((issue) => ( - - {issue.labels.map((label) => ( - - ))} - - ))} + {/* Filters out pull requests */} + {data.items.map((issue) => + !issue.html_url.includes('/pull/') ? ( + + {issue.labels.map((label) => ( + + ))} + + ) : ( + <> + ) + )}