File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import { ServerData } from '../types';
22import api from '../API/Index' ;
33
44export 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 ) ;
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import { OrphanNodeResponse } from '../types';
22import api from '../API/Index' ;
33
44export 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 ) ;
You can’t perform that action at this time.
0 commit comments