Skip to content

Commit

Permalink
Active batches only
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmingjie committed Nov 22, 2021
1 parent 395e8a1 commit 1303552
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export default function NewProject(props) {

/* onload to get batches */
const fetchBatches = async () => {
let { data: batches, error } = await supabase.from("batches").select();
let { data: batches, error } = await supabase
.from("batches")
.select()
.is("is_active", true);
setBatches(batches);
};

Expand Down

1 comment on commit 1303552

@vercel
Copy link

@vercel vercel bot commented on 1303552 Nov 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.