We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e360e commit 66f1520Copy full SHA for 66f1520
Project/frontend/src/components/Graph/index_visjs.tsx
@@ -229,17 +229,12 @@ const GraphVisualization: React.FC = () => {
229
230
useEffect(() => {
231
const fetchGraphData = async () => {
232
- if (sessionStorage.getItem(fileId)) {
233
- setGraphData(JSON.parse(sessionStorage.getItem(fileId) as string));
234
- setIsLoading(false);
235
- return;
236
try {
237
const response = await fetch(
238
`${import.meta.env.VITE_BACKEND_HOST}${VISUALIZE_API_PATH.replace(':fileId', fileId)}`,
239
);
240
const data = await response.json();
241
setGraphData(data);
242
- sessionStorage.setItem(fileId, JSON.stringify(data));
243
244
// Get the list of unique topics
245
const uniqueTopics = Array.from(
0 commit comments