Commit 68bf2266 authored by Jaden DIEFENBAUGH's avatar Jaden DIEFENBAUGH
Browse files

[toolchains] properly remove connection rep info when deleting conn

parent 496e807a
Pipeline #20381 passed with stages
in 61 minutes and 59 seconds
......@@ -632,12 +632,14 @@ export class ToolchainEditor extends React.PureComponent<Props, State> {
})
.reduce((cs, c) => ({...cs, c}), {})
;
const newContents = {
connections: this.state.cache.contents.connections.filter(c => {
if(c.from === cn.from && c.to === cn.to)
return false;
return true;
}),
representation: rep,
};
this.setContents(newContents);
......
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