hunk.code_window:                 return ds.getId();
               } else {
                   // This means we don't have regular datasource it can be simple REST_API
                   ds.setOrganizationId(organizationId);
                   ds.setPluginId(pluginMap.get(ds.getPluginId()));
                   return "";
  
hunk.labels: keep keep replace keep keep keep
hunk.after_edit:                 // This means we don't have regular datasource it can be simple REST_API and will also be used when
                   // importing the action to populate the data
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ImportExportApplicationService.java
hunk.type: replace
file: import { createReducer } from "utils/AppsmithUtils";
  import {
    ReduxAction,
    ReduxActionTypes,
    ReduxActionErrorTypes,
  } from "constants/ReduxActionConstants";
  
  import {
    TemplateList,
    CollectionDataArray,
  } from "constants/collectionsConstants";
  
  const initialState: ImportedCollectionsReduxState = {
    isFetchingImportedCollections: false,
    importedCollections: [],
  };
  
  const importedCollectionsReducer = createReducer(initialState, {
    [ReduxActionTypes.FETCH_IMPORTED_COLLECTIONS_INIT]: (
      state: ImportedCollectionsReduxState,
    ) => ({ ...state, isFetchingImportedCollections: true }),
    [ReduxActionTypes.FETCH_IMPORTED_COLLECTIONS_SUCCESS]: (
      state: ImportedCollectionsReduxState,
      action: ReduxAction<Array<CollectionDataArray>>,
    ) => ({
      ...state,
      importedCollections: action.payload[0].apiTemplateList,
      isFetchingImportedCollections: false,
    }),
    [ReduxActionErrorTypes.FETCH_IMPORTED_COLLECTIONS_ERROR]: (
      state: ImportedCollectionsReduxState,
    ) => {
      return { ...state, isFetchingImportedCollections: false };
    },
  });
  
  export interface ImportedCollectionsReduxState {
    isFetchingImportedCollections: boolean;
    importedCollections: TemplateList[];
  }
  
  export default importedCollectionsReducer;
  