mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
Fix add service for topology
This commit is contained in:
parent
14a5433a70
commit
5f89203333
@ -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
|
||||
} : {
|
||||
...nextLink
|
||||
};
|
||||
});
|
||||
const mappedLinks = nextLinks.map((nextLink, index) => ({
|
||||
...nextLink
|
||||
}));
|
||||
|
||||
const {
|
||||
width,
|
||||
|
Loading…
Reference in New Issue
Block a user