diff --git a/pages/new.js b/pages/new.js index e3efcfa..8e256b1 100644 --- a/pages/new.js +++ b/pages/new.js @@ -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); };