Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
9ba1e951
Commit
9ba1e951
authored
Jun 04, 2018
by
Jaden DIEFENBAUGH
Browse files
fix transforming rep.conns adding random "c" object keys, fixes
#116
parent
2352e68f
Pipeline
#20712
passed with stages
in 67 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conda/js/src/components/toolchain/ToolchainEditor.jsx
View file @
9ba1e951
...
...
@@ -407,7 +407,7 @@ export class ToolchainEditor extends React.PureComponent<Props, State> {
return
[
updated
.
join
(
'
/
'
),
rep
];
})
.
reduce
((
cs
,
c
)
=>
({...
cs
,
c
}),
{})
.
reduce
((
cs
,
[
name
,
map
]
)
=>
({...
cs
,
[
name
]:
rep
}),
{})
;
const
newContents
=
{
...
this
.
state
.
cache
.
contents
,
...
...
@@ -630,7 +630,7 @@ export class ToolchainEditor extends React.PureComponent<Props, State> {
return
false
;
return
true
;
})
.
reduce
((
cs
,
c
)
=>
({...
cs
,
c
}),
{})
.
reduce
((
cs
,
[
name
,
rep
]
)
=>
({...
cs
,
[
name
]:
rep
}),
{})
;
const
newContents
=
{
...
...
@@ -663,7 +663,7 @@ export class ToolchainEditor extends React.PureComponent<Props, State> {
return
false
;
return
true
;
})
.
reduce
((
cs
,
c
)
=>
({...
cs
,
c
}),
{})
.
reduce
((
cs
,
[
name
,
rep
]
)
=>
({...
cs
,
[
name
]:
rep
}),
{})
;
const
newContents
=
{
...
this
.
state
.
cache
.
contents
,
...
...
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