Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
HARP-13326: Removes obsolete ? on access of existing Array
Browse files Browse the repository at this point in the history
Signed-off-by: Frauke Fritz <frauke.fritz@here.com>
  • Loading branch information
Frauke Fritz committed Dec 14, 2020
1 parent ca3ebae commit 27d46a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @here/harp-mapview/lib/text/TextElementsRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export class TextElementsRenderer {
fontCatalogs = [];
}
// Never remove the default Canvas if set per configuration
fontCatalogs?.unshift(this.m_defaultFontCatalogConfig);
fontCatalogs.unshift(this.m_defaultFontCatalogConfig);
} else {
if (this.m_textCanvases.has(DEFAULT_FONT_CATALOG_NAME)) {
this.m_textCanvases.delete(DEFAULT_FONT_CATALOG_NAME);
Expand Down

0 comments on commit 27d46a1

Please sign in to comment.