diff --git a/api/webapp/clientapi/dom/DataRegion.js b/api/webapp/clientapi/dom/DataRegion.js index 2310bafd0c5..29903cbbcd4 100644 --- a/api/webapp/clientapi/dom/DataRegion.js +++ b/api/webapp/clientapi/dom/DataRegion.js @@ -16,7 +16,7 @@ if (!LABKEY.DataRegions) { var ALL_ROWS_MAX = 5_000; var CUSTOM_VIEW_PANELID = '~~customizeView~~'; var DEFAULT_TIMEOUT = 30_000; - const MAX_SELECTION_SIZE = LABKEY.moduleContext.query?.maxQuerySelection ?? 100_000; + const MAX_SELECTION_SIZE = LABKEY.moduleContext?.query?.maxQuerySelection ?? 100_000; var PARAM_PREFIX = '.param.'; var SORT_ASC = '+'; var SORT_DESC = '-';