Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
ac8ddb62
Commit
ac8ddb62
authored
Feb 22, 2023
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#167
remove some console logs
parent
a073ecd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
5 deletions
+0
-5
projects.ts
planner-api/src/routers/projects.ts
+0
-2
СustomSelect.js
planner-front/src/components/UI/СustomSelect/СustomSelect.js
+0
-1
MyTasks.js
planner-front/src/containers/MyTasks/MyTasks.js
+0
-2
No files found.
planner-api/src/routers/projects.ts
View file @
ac8ddb62
...
...
@@ -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
})
...
...
planner-front/src/components/UI/СustomSelect/СustomSelect.js
View file @
ac8ddb62
...
...
@@ -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
}}
>
...
...
planner-front/src/containers/MyTasks/MyTasks.js
View file @
ac8ddb62
...
...
@@ -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])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment