Skip to content

Commit

Permalink
fix tslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 27, 2020
1 parent 5fda587 commit 231d95e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class ObservabilityLayerTemplate extends Component<RenderWizardArguments,
metric: this.state.metric,
display: this.state.display,
});
this.props.previewLayers([layerDescriptor]);
this.props.previewLayers(layerDescriptor ? [layerDescriptor] : []);
}

render() {
Expand Down

0 comments on commit 231d95e

Please sign in to comment.