#167 remove some console logs

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