Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Pedro-dev_2
cms
Commits
d15eb195
Commit
d15eb195
authored
Apr 21, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
realese 1
parent
6a91e7bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
index.js
src/views/settings/projects/edit/index.js
+3
-2
index.js
src/views/settings/store/reducer/index.js
+4
-3
No files found.
src/views/settings/projects/edit/index.js
View file @
d15eb195
...
...
@@ -53,11 +53,12 @@ const ProjectsEdit = () => {
useEffect
(()
=>
{
console
.
log
(
'eff'
)
console
.
log
(
storeSettings
.
selectedProject
)
if
(
storeSettings
.
selectedProject
===
null
||
storeSettings
.
selectedProject
.
data
.
id
!==
id
)
store
.
dispatch
(
getProject
(
parseInt
(
id
)))
// if (storeSettings.selectedProject === null && storeSettings.selectedProject !== undefined)
store
.
dispatch
(
getProject
(
parseInt
(
id
)))
},
[
dispatch
])
return
storeSettings
.
selectedProject
!==
null
&&
storeSettings
.
selectedProject
!==
undefined
&&
storeSettings
.
selectedProject
.
id
===
id
?
(
return
storeSettings
.
selectedProject
!==
null
&&
storeSettings
.
selectedProject
!==
undefined
?
(
<
Row
>
<
Col
sm
=
'12'
>
<
Form
onSubmit
=
{
handleSubmit
(
onSubmit
)}
>
...
...
src/views/settings/store/reducer/index.js
View file @
d15eb195
...
...
@@ -17,7 +17,7 @@ const initialState = {
totalPlatforms
:
1
,
paramsPlatforms
:
{},
allDataPlatforms
:
[],
selectedPlatform
:
{}
selectedPlatform
:
null
}
const
Settings
=
(
state
=
initialState
,
action
)
=>
{
...
...
@@ -44,6 +44,7 @@ const Settings = (state = initialState, action) => {
case
'GET_DATA_PROJECTS'
:
return
{
...
state
,
allDataProjects
:
action
.
allData
,
...
...
@@ -53,8 +54,8 @@ const Settings = (state = initialState, action) => {
}
case
'GET_PROJECT'
:
return
{
...
state
,
selectedProject
:
action
.
selectedProject
return
{
...
state
,
selectedProject
:
action
.
selectedProject
}
case
'UPDATE_PROJECT'
:
...
...
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