Skip to content

Commit c0d74f9

Browse files
formdata missing
1 parent 23d267a commit c0d74f9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/src/services/GetNodeLabelsRelTypes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { ServerData } from '../types';
22
import api from '../API/Index';
33

44
export const getNodeLabelsAndRelTypes = async () => {
5+
const formData = new FormData();
56
try {
6-
const response = await api.post<ServerData>(`/schema`);
7+
const response = await api.post<ServerData>(`/schema`,formData);
78
return response;
89
} catch (error) {
910
console.log(error);

frontend/src/services/GetOrphanNodes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { OrphanNodeResponse } from '../types';
22
import api from '../API/Index';
33

44
export const getOrphanNodes = async () => {
5+
const formData = new FormData();
56
try {
6-
const response = await api.post<OrphanNodeResponse>(`/get_unconnected_nodes_list`);
7+
const response = await api.post<OrphanNodeResponse>(`/get_unconnected_nodes_list`,formData);
78
return response;
89
} catch (error) {
910
console.log(error);

0 commit comments

Comments
 (0)