diff --git a/app/client/src/api/LibraryAPI.tsx b/app/client/src/api/LibraryAPI.tsx index 73b5c0d879c7..a76a7a1fb207 100644 --- a/app/client/src/api/LibraryAPI.tsx +++ b/app/client/src/api/LibraryAPI.tsx @@ -21,7 +21,7 @@ export default class LibraryApi extends Api { library: Partial, ) { const url = LibraryApi.getUpdateLibraryBaseURL(applicationId) + "/remove"; - return Api.patch(url, library); + return Api.patch(url, { accessor: library.accessor, url: library.url }); } static async getLibraries(applicationId: string, mode: APP_MODE) { diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/CustomJSLibControllerCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/CustomJSLibControllerCE.java index fdcb958caa24..1e888cd287b9 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/CustomJSLibControllerCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/CustomJSLibControllerCE.java @@ -61,9 +61,8 @@ public Mono> removeJSLibFromApplication( @RequestHeader(name = FieldName.BRANCH_NAME, required = false) String branchName, @RequestHeader(name = FieldName.IS_FORCE_REMOVE, defaultValue = "false") Boolean isForceRemove) { log.debug( - "Going to remove JS lib: {}_{} from {}: {}, on branch:{}", - customJSLib.getName(), - customJSLib.getVersion(), + "Going to remove JS lib: {} from {}: {}, on branch:{}", + customJSLib.getUidString(), contextType.name().toLowerCase(), applicationId, branchName);