refactor create/editTask into one upsertTask page, and remove all remaining console.log and debugging helpers
This commit is contained in:
@@ -86,20 +86,6 @@ export default function ViewDetailsSubject() {
|
||||
}, [session, sId])
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
const test = async () => {
|
||||
try {
|
||||
const { data, error } = await supabase.from('subjects').select('*').limit(1);
|
||||
console.log('test data:', data);
|
||||
console.log('test error:', error);
|
||||
} catch (err) {
|
||||
console.log('test crashed:', err);
|
||||
}
|
||||
};
|
||||
|
||||
test();
|
||||
}, []);
|
||||
|
||||
const DeleteSubject = async (subjectId: string) => {
|
||||
Alert.alert(
|
||||
'Delete Subject',
|
||||
@@ -474,4 +460,4 @@ export default function ViewDetailsSubject() {
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user