From 4dd64dc5a9a333f0e7881855eaf6e2b703727ee9 Mon Sep 17 00:00:00 2001 From: RowHeat <40065760+rowheat02@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:11:04 +0545 Subject: [PATCH] fetching the list of formats is disabled for a no-vendor WMS service #10480 (#10594) --- .../editor/AdvancedSettings/RasterAdvancedSettings.js | 9 ++++++--- .../__tests__/RasterAdvancedSettings-test.js | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/web/client/components/catalog/editor/AdvancedSettings/RasterAdvancedSettings.js b/web/client/components/catalog/editor/AdvancedSettings/RasterAdvancedSettings.js index f587a614dc..158f071dd5 100644 --- a/web/client/components/catalog/editor/AdvancedSettings/RasterAdvancedSettings.js +++ b/web/client/components/catalog/editor/AdvancedSettings/RasterAdvancedSettings.js @@ -87,6 +87,8 @@ export default ({ const tileSelectOptions = getTileSizeSelectOptions(tileSizeOptions); const serverTypeOptions = getServerTypeOptions(); + // for CSW services with no vendor options, disable format and info format options + const canLoadInfo = !(['csw'].includes(service.type) && service.layerOptions?.serverType === ServerTypes.NO_VENDOR); return ( {(isLocalizedLayerStylesEnabled && !isNil(service.type) ? service.type === "wms" : false) && ( } text={} /> : null}