This commit is contained in:
2025-01-07 15:51:07 -07:00
parent d7addccbc7
commit f54d8ccee6
2 changed files with 9 additions and 8 deletions

View File

@@ -164,7 +164,6 @@ const Graph = () => {
const onConnect: OnConnect = useCallback(
async (connection) => {
setLinkEdges((eds) => addEdge(connection, eds));
console.debug(
`new connection: ${connection.source} -> ${connection.target}`
);
@@ -178,8 +177,10 @@ const Graph = () => {
},
refreshAuth,
});
if (resp?.status === 201)
if (resp?.status === 201) {
showSuccessToastNotification(resp?.data.message);
setLinkEdges((eds) => addEdge(connection, eds));
}
},
[setLinkEdges, refreshAuth]
);