#167 remove some console logs

parent a073ecd6
......@@ -229,7 +229,6 @@ router.put('/change-project-role/:userId',authAdminProject, async (req: Request
router.get('/task_create/:userId', async (req : Request, res : Response): Promise<Response>=>{
try{
const userId = req.params.userId
console.log('userId', userId)
const userProjects = await dataSource
.createQueryBuilder()
.select('project')
......@@ -239,7 +238,6 @@ router.get('/task_create/:userId', async (req : Request, res : Response): Promis
.where("user.id = :id", { id: userId })
.andWhere("member.roleProject != :role", {role:MemberRole.WATCHER})
.getMany();
console.log('userProjects', userProjects)
return res.send({userProjects})
} catch(e) {
return res.status(502).send({message:(e as Error).message})
......
......@@ -2,7 +2,6 @@ import { FormControl, InputLabel, MenuItem, Select } from '@mui/material';
import { memo } from 'react';
function СustomSelect({ value, onChange, label, variant = 'standard', items, id, defaultValue, name, sx, renderValue}) {
console.log('custom select render , ' , items)
return (
<>
<FormControl variant={variant} sx={ sx?.width ? sx : { m: 0, minWidth: 125}}>
......
......@@ -17,7 +17,6 @@ export default function MyTasks() {
const { user } = useSelector((state) => state.users);
const { tasks, sortedTasks } = useSelector((state) => state.tasks, shallowEqual);
const { allUserProjectsForModalTask, projects } = useSelector(state => state.projects, shallowEqual)
console.log('allUserProjectsForModalTask', allUserProjectsForModalTask)
const [newTask, setNewTask] = useState({
priority: '',
title: '',
......@@ -118,7 +117,6 @@ export default function MyTasks() {
dateTimeDeadLine: null
})
}
console.log('before dispatch fetchProjectsNonWatcherForTaskCreate')
dispatch(fetchProjectsNonWatcherForTaskCreate(user.id))
setAddFormStatus((prevState) => { return !prevState })
// }, [addFormStatus])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment