diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/jslibs/exportable/CustomJSLibExportableServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/jslibs/exportable/CustomJSLibExportableServiceCEImpl.java index 8df63d5138..bae0aa11ac 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/jslibs/exportable/CustomJSLibExportableServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/jslibs/exportable/CustomJSLibExportableServiceCEImpl.java @@ -1,6 +1,7 @@ package com.appsmith.server.jslibs.exportable; import com.appsmith.external.git.models.GitResourceType; +import com.appsmith.git.files.FileUtilsImpl; import com.appsmith.server.constants.FieldName; import com.appsmith.server.domains.Application; import com.appsmith.server.domains.Artifact; @@ -78,11 +79,16 @@ public class CustomJSLibExportableServiceCEImpl implements ExportableServiceCE updatedCustomJsLibResourceIdentifiers = updatedCustomJSLibSet.stream() + .map(FileUtilsImpl::getJsLibFileName) + .collect(Collectors.toSet()); + artifactExchangeJson .getModifiedResources() .getModifiedResourceIdentifiers() .get(GitResourceType.JSLIB_CONFIG) - .addAll(updatedCustomJSLibSet); + .addAll(updatedCustomJsLibResourceIdentifiers); /** * Previously it was a Set and as Set is an unordered collection of elements that