Commit 9ba1e951 authored by Jaden DIEFENBAUGH's avatar 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
......@@ -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,
......
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