1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 13:53:51 +03: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 mappedLinks = nextLinks.map((nextLink, index) => ({
const simLink = simLinks.reduce((acc, l, i) => { ...nextLink
return nextLink.source === l.source && nextLink.target === l.target ? }));
l : acc;
}, {});
return simLink ? {
...simLink
} : {
...nextLink
};
});
const { const {
width, width,