Skip to content

Commit

Permalink
fix: loading orgs in catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
randysim committed Aug 11, 2024
1 parent 1916b77 commit 1a3a64e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/Catalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ const Catalog = () => {
({ data: orgData, error: orgError } = await supabase
.from("organizations")
.select("*")
.neq("state", "PENDING")
.neq("state", "LOCKED")
.neq("state", "PUNISHED")
.or(catalogQuery)
// .ilike("name", `%${searchParams.name}%`)
.range(originalOffset, originalOffset + querySize - 1));
Expand Down Expand Up @@ -289,12 +292,6 @@ const Catalog = () => {
{
searchState.orgs.length ? (
searchState.orgs.map((org, i) => {
if (
org.state === "PENDING" ||
org.state === "LOCKED" ||
org.state === "PUNISHED"
)
return <></>;
return (
<OrgCard organization={org} key={i} />
);
Expand Down

0 comments on commit 1a3a64e

Please sign in to comment.