This commit is contained in:
2025-06-23 09:37:53 +05:30
parent 2fbdf8ab61
commit 54b02541c1
278 changed files with 10134 additions and 7904 deletions

View File

@@ -1,6 +1,6 @@
let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`;
export const deleteAisleApi = async (aisleUuid: string, projectId: string) => {
export const deleteAisleApi = async (aisleUuid: string, projectId: string, versionId: string) => {
try {
const response = await fetch(`${url_Backend_dwinzo}/api/V1/DeleteAisle`, {
method: "PATCH",
@@ -21,9 +21,9 @@ export const deleteAisleApi = async (aisleUuid: string, projectId: string) => {
return result;
} catch (error) {
if (error instanceof Error) {
throw new Error(error.message);
console.log(error.message);
} else {
throw new Error("An unknown error occurred");
console.log("An unknown error occurred");
}
}
};