From bad901e49cc51168dc2b3348a2ed787016486ccd Mon Sep 17 00:00:00 2001 From: labkey-nicka Date: Mon, 13 Oct 2025 09:42:25 -0700 Subject: [PATCH] DataRegion: Watch out for undefined moduleContext --- api/webapp/clientapi/dom/DataRegion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '-';