From 228fc212bf5533fee3ec743a022533f7a31e5f0c Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 6 Dec 2022 12:28:31 +1300 Subject: [PATCH] Reduce logging in DrawerMenu If a console.log is so long my terminal history can't scroll backward, then it's probably too much logging... --- DrawerMenu.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/DrawerMenu.tsx b/DrawerMenu.tsx index 0189025..613eb60 100644 --- a/DrawerMenu.tsx +++ b/DrawerMenu.tsx @@ -63,7 +63,6 @@ export default function DrawerMenu({name}: {name: keyof DrawerParamList}) { const file = await FileSystem.readFile(result.uri) console.log(`${DrawerMenu.name}.uploadSets:`, file.length) const lines = file.split('\n') - console.log(lines[0]) if (!setFields.includes(lines[0])) return toast('Invalid csv.') const values = lines .slice(1) @@ -95,7 +94,6 @@ export default function DrawerMenu({name}: {name: keyof DrawerParamList}) { } return set }) - console.log(`${DrawerMenu.name}.uploadSets:`, {values}) await setRepo.insert(values) toast('Data imported.') reset({index: 0, routes: [{name}]})