Skip to content

Commit

Permalink
#1726: Fix - Tile format select input not shown (#1727)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuren1 authored Apr 18, 2024
1 parent 90578be commit cca247a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import InfoPopover from '@mapstore/framework/components/widgets/widget/InfoPopov
import { getSupportedFormat } from '@mapstore/framework/api/WMS';
import { getConfigProp } from '@mapstore/framework/utils/ConfigUtils';
import LegendImage from '@mapstore/framework/plugins/TOC/components/Legend';
import { DEFAULT_SUPPORTED_GET_MAP_FORMAT } from '@mapstore/framework/utils/WMSUtils';
import Select from 'react-select';
import GeneralSettings from '@js/plugins/layersettings/GeneralSettings';
import VisibilitySettings from '@js/plugins/layersettings/VisibilitySettings';
Expand Down Expand Up @@ -215,8 +216,8 @@ function WMSLayerSettings({
isLoading={!!formatLoading}
options={formatLoading
? []
: (formats?.map((value) => ({ value, label: value }))
|| imageFormats)}
: (formats ?? imageFormats ?? DEFAULT_SUPPORTED_GET_MAP_FORMAT).map((_format) => _format?.value ? _format : ({ value: _format, label: _format }))
}
value={format}
onChange={({ value }) => onChange({ format: value })}/>
<Button
Expand Down

0 comments on commit cca247a

Please sign in to comment.