Skip to content

Commit

Permalink
chore: no need to initialize an undefined variable
Browse files Browse the repository at this point in the history
Co-authored-by: Junqiu Lei <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
  • Loading branch information
ruanyl and junqiu-lei committed Dec 21, 2022
1 parent 48e5aad commit 184401b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const LayerControlPanel = memo(({ maplibreRef, setLayers, layers }: Props) => {
if (sourceConfig.showTooltips === true && sourceConfig.tooltipFields.length > 0) {
sourceFields.push(...sourceConfig.tooltipFields);
}
let indexPattern: IndexPattern | undefined = undefined;
let indexPattern: IndexPattern | undefined;
if (layer.source.indexPatternId) {
indexPattern = await indexPatterns.get(layer.source.indexPatternId);
}
Expand Down

0 comments on commit 184401b

Please sign in to comment.