hunk.code_window:           "controlType": "QUERY_DYNAMIC_TEXT",
             "evaluationSubstitutionType": "TEMPLATE",
             "hidden": {
               "path": "actionConfiguration.pluginSpecifiedTemplates[0].value",
               "comparison": "EQUALS",
               "value": "true"
             }
           }
         ]
       }
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:             "comparison": "IN",
               "value": [
                 "true",
                 true
               ]
  
hunk.file_path: app/server/appsmith-plugins/mongoPlugin/src/main/resources/editor.json
hunk.type: replace
file: import { createSelector } from "reselect";
  import { AppState } from "reducers";
  import { AppViewReduxState } from "reducers/uiReducers/appViewReducer";
  import { PageListReduxState } from "reducers/entityReducers/pageListReducer";
  import { BUILDER_PAGE_URL } from "constants/routes";
  
  const getAppViewState = (state: AppState) => state.ui.appView;
  const getPageListState = (state: AppState): PageListReduxState =>
    state.entities.pageList;
  
  // For the viewer, this does not need to be wrapped in createCachedSelector, as it will not change in subsequent renders.
  // export const getCurrentPageLayoutDSL = createSelector(
  //   getAppViewState,
  //   getDataTree,
  //   (view: AppViewReduxState, dataTree: DataTree) =>
  //     injectDataTreeIntoDsl(dataTree, view.dsl),
  // );
  
  export const getPageList = createSelector(
    getPageListState,
    (pageList: PageListReduxState) =>
      pageList.pages.length > 0 ? pageList.pages : undefined,
  );
  
  export const getIsFetchingPage = createSelector(
    getAppViewState,
    (view: AppViewReduxState) => view.isFetchingPage,
  );
  
  export const getIsInitialized = createSelector(
    getAppViewState,
    (view: AppViewReduxState) => view.initialized,
  );
  
  export const getCurrentDSLPageId = createSelector(
    getPageListState,
    (pageList: PageListReduxState) => pageList.currentPageId,
  );
  
  export const getEditorURL = createSelector(
    getPageListState,
    (pageList: PageListReduxState) =>
      pageList.applicationId && pageList.currentPageId
        ? BUILDER_PAGE_URL(pageList.applicationId, pageList.currentPageId)
        : "",
  );
  