1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

Fix add service for topology

This commit is contained in:
JUDIT GRESKOVITS 2017-02-15 11:28:47 +00:00
parent 14a5433a70
commit 5f89203333

View File

@ -78,17 +78,9 @@ const updateSimulation = (
};
});
const mappedLinks = nextLinks.map((nextLink, index) => {
const simLink = simLinks.reduce((acc, l, i) => {
return nextLink.source === l.source && nextLink.target === l.target ?
l : acc;
}, {});
return simLink ? {
...simLink
} : {
const mappedLinks = nextLinks.map((nextLink, index) => ({
...nextLink
};
});
}));
const {
width,