Spaces:
Paused
Paused
Hemang Thakur
commited on
Commit
·
d52df2e
1
Parent(s):
25f9610
removed neo4j and replaced with rustworkx
Browse files
frontend/src/Components/AiComponents/Graph.js
CHANGED
@@ -14,7 +14,7 @@ export default function Graph({ open, onClose }) {
|
|
14 |
fetch("/action/graph", {
|
15 |
method: "POST",
|
16 |
headers: { "Content-Type": "application/json" },
|
17 |
-
body: JSON.stringify({})
|
18 |
})
|
19 |
.then(res => res.json())
|
20 |
.then(data => {
|
@@ -27,7 +27,7 @@ export default function Graph({ open, onClose }) {
|
|
27 |
setLoading(false);
|
28 |
});
|
29 |
}
|
30 |
-
}, [
|
31 |
|
32 |
if (!open) return null;
|
33 |
|
|
|
14 |
fetch("/action/graph", {
|
15 |
method: "POST",
|
16 |
headers: { "Content-Type": "application/json" },
|
17 |
+
body: JSON.stringify({}) // sending an empty JSON object
|
18 |
})
|
19 |
.then(res => res.json())
|
20 |
.then(data => {
|
|
|
27 |
setLoading(false);
|
28 |
});
|
29 |
}
|
30 |
+
}, [open]);
|
31 |
|
32 |
if (!open) return null;
|
33 |
|