hunk.code_window: import org.springframework.data.mongodb.core.query.Update;
   import org.springframework.stereotype.Component;
   import reactor.core.publisher.Mono;
   import static com.appsmith.server.helpers.ce.bridge.Bridge.bridge;
   @Component
   public class CustomDatasourceStorageStructureRepositoryCEImpl
           extends BaseAppsmithRepositoryImpl<DatasourceStorageStructure>
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: import static org.springframework.data.mongodb.core.query.Criteria.where;
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomDatasourceStorageStructureRepositoryCEImpl.java
hunk.type: replace
file: import type { DSLWidget } from "../types";
  
  export const mapAllowHorizontalScrollMigration = (currentDSL: DSLWidget) => {
    currentDSL.children = currentDSL.children?.map((child: DSLWidget) => {
      if (child.type === "CHART_WIDGET") {
        child.allowScroll = child.allowHorizontalScroll;
        delete child.allowHorizontalScroll;
      }
  
      if (Array.isArray(child.children) && child.children.length > 0)
        child = mapAllowHorizontalScrollMigration(child);
  
      return child;
    });
  
    return currentDSL;
  };
  