Skip to content

Commit 7e56cfb

Browse files
authored
Merge pull request #153 from hamelin/more-robust-deckgl-template
Make label filter more robust
2 parents 03485d2 + a7a8a60 commit 7e56cfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datamapplot/deckgl_template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
// Only build labels where we have a position.
637637
datamap.addLabels(
638638
{%- if enable_topic_tree -%}
639-
labelData.filter((d) => {return !(d.id.endsWith('-1'))})
639+
labelData.filter((d) => {return !(d.id && d.id.endsWith('-1'))})
640640
{%- else -%}
641641
labelData
642642
{%- endif -%}, {

0 commit comments

Comments
 (0)