Skip to content

Commit 66f1520

Browse files
committed
Revert "fix: handle sessionStorage retrieval and setGraphData in GraphVisualization component"
This reverts commit a6e360e.
1 parent a6e360e commit 66f1520

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Project/frontend/src/components/Graph/index_visjs.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,12 @@ const GraphVisualization: React.FC = () => {
229229

230230
useEffect(() => {
231231
const fetchGraphData = async () => {
232-
if (sessionStorage.getItem(fileId)) {
233-
setGraphData(JSON.parse(sessionStorage.getItem(fileId) as string));
234-
setIsLoading(false);
235-
return;
236232
try {
237233
const response = await fetch(
238234
`${import.meta.env.VITE_BACKEND_HOST}${VISUALIZE_API_PATH.replace(':fileId', fileId)}`,
239235
);
240236
const data = await response.json();
241237
setGraphData(data);
242-
sessionStorage.setItem(fileId, JSON.stringify(data));
243238

244239
// Get the list of unique topics
245240
const uniqueTopics = Array.from(

0 commit comments

Comments
 (0)