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...
This commit is contained in:
Brandon Presley 2022-12-06 12:28:31 +13:00
parent e46e23c9e1
commit 228fc212bf
1 changed files with 0 additions and 2 deletions

View File

@ -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}]})