Skip to content

Commit

Permalink
more tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jul 2, 2020
1 parent 18ec7a2 commit 26d8681
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function LayerSettings(props: Props) {
formRowDisplay="columnCompressed"
min={minVisibilityZoom}
max={maxVisibilityZoom}
value={[props.layer.getMinZoom(), props.layer.getMaxZoom()]}
value={[props.layer!.getMinZoom(), props.layer!.getMaxZoom()]}
showInput="inputWithPopover"
showRange
showLabels
Expand All @@ -88,13 +88,13 @@ export function LayerSettings(props: Props) {
})}
display="columnCompressed"
>
<EuiFieldText value={props.layer.getLabel()} onChange={onLabelChange} compressed />
<EuiFieldText value={props.layer!.getLabel()} onChange={onLabelChange} compressed />
</EuiFormRow>
);
};

const renderShowLabelsOnTop = () => {
if (!props.layer.supportsLabelsOnTop()) {
if (!props.layer!.supportsLabelsOnTop()) {
return null;
}

Expand All @@ -104,7 +104,7 @@ export function LayerSettings(props: Props) {
label={i18n.translate('xpack.maps.layerPanel.settingsPanel.labelsOnTop', {
defaultMessage: `Show labels on top`,
})}
checked={props.layer.labelsOnTop()}
checked={props.layer!.labelsOnTop()}
onChange={onLabelsOnTopChange}
data-test-subj="mapLayerPanelApplyGlobalQueryCheckbox"
compressed
Expand Down

0 comments on commit 26d8681

Please sign in to comment.