Skip to content

Commit c6e6470

Browse files
authored
Merge pull request #51 from data-exp-lab/fe-edge
Fix Edge Creation on Cloud
2 parents 36614d9 + eb21b80 commit c6e6470

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export const API_ENDPOINTS = {
1010
SUGGEST_TOPICS: `${API_BASE_URL}/api/suggest-topics`,
1111
GENERATED_NODES: `${API_BASE_URL}/api/generated-node-gexf`,
1212
GET_UNIQUE_REPOS: `${API_BASE_URL}/api/get-unique-repos`,
13+
CREATE_EDGES_ON_GRAPH: `${API_BASE_URL}/api/create-edges-on-graph`,
1314
} as const;

src/views/EdgePanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Slider from "rc-slider";
55

66
import { GraphContext } from "../lib/context";
77
import { useNotifications } from "../lib/notifications";
8+
import { API_ENDPOINTS } from "../lib/config";
89

910
const EdgePanel: FC<{ isExpanded: boolean }> = ({ isExpanded }) => {
1011
const { navState, setNavState, setShowEdgePanel, data, graphFile, computedData, setData } = useContext(GraphContext);
@@ -214,7 +215,7 @@ const EdgePanel: FC<{ isExpanded: boolean }> = ({ isExpanded }) => {
214215
};
215216

216217
// Call backend API with original graph
217-
const response = await fetch('http://127.0.0.1:5002/api/create-edges-on-graph', {
218+
const response = await fetch(API_ENDPOINTS.CREATE_EDGES_ON_GRAPH, {
218219
method: 'POST',
219220
headers: {
220221
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)