use a synthetic 'node.id' for frontend nodes to fix 'undulating visualizer' issue; change detection was breaking (#323)

This commit is contained in:
Michael Quigley 2023-05-17 20:58:07 -04:00
parent 7963ba83b0
commit d205405aa0
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ const AccessDetail = (props) => {
const [detail, setDetail] = useState({});
useEffect(() => {
getFrontendDetail(props.selection.id)
getFrontendDetail(props.selection.feId)
.then(resp => {
setDetail(resp.data);
});

View File

@ -74,7 +74,8 @@ export const mergeGraph = (oldGraph, user, accountLimited, newOverview) => {
if(env.frontends) {
env.frontends.forEach(fe => {
let feNode = {
id: fe.id,
id: "fe:" + fe.id,
feId: fe.id,
target: fe.shrToken,
label: fe.shrToken,
type: "frontend",