diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java index cf5ed7b019..a694ab9e72 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java @@ -71,6 +71,7 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; import java.util.stream.Stream; +import static com.appsmith.external.helpers.AppsmithBeanUtils.copyNestedNonNullProperties; import static com.appsmith.external.helpers.AppsmithBeanUtils.copyNewFieldValuesIntoOldObject; import static com.appsmith.server.migrations.DatabaseChangelog.dropIndexIfExists; import static com.appsmith.server.migrations.DatabaseChangelog.ensureIndexes; @@ -1439,7 +1440,7 @@ public class DatabaseChangelog2 { Theme theme = mongockTemplate.findOne(themeQuery, Theme.class); for (Application application : applicationList) { Theme newTheme = new Theme(); - copyNewFieldValuesIntoOldObject(theme, newTheme); + copyNestedNonNullProperties(theme, newTheme); newTheme.setId(null); newTheme.setSystemTheme(false); newTheme = mongockTemplate.insert(newTheme);