fix: bugs
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import Project from "@/ApiClasses/Project";
|
||||
import SectionCell from "@/ApiClasses/SectionCell";
|
||||
import { axiosInstance, defaultApiErrorHandler, defaultApiSuccessHandler } from "@/services/api"
|
||||
import {
|
||||
axiosInstance,
|
||||
defaultApiErrorHandler,
|
||||
defaultApiSuccessHandler,
|
||||
} from "@/services/api";
|
||||
|
||||
axiosInstance.interceptors.response.use(
|
||||
(response) => response, // Directly return successful responses.
|
||||
@@ -62,7 +66,7 @@ function addSectionCell(
|
||||
onErrorHandler?: (error: AxiosError) => void
|
||||
): void {
|
||||
axiosInstance
|
||||
.post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject()) // <-- Ici
|
||||
.post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject()) // <-- Ici
|
||||
.then((response) => {
|
||||
if (onSuccessHandler) {
|
||||
onSuccessHandler(response);
|
||||
|
Reference in New Issue
Block a user