From 13035520ce70fc0d37923949c765266d2be47f57 Mon Sep 17 00:00:00 2001 From: Mingjie Jiang Date: Mon, 22 Nov 2021 15:35:13 -0800 Subject: [PATCH] Active batches only --- pages/new.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); };