From 5f1283262c6a5bc3665214f6ab3e68ae8428f5ca Mon Sep 17 00:00:00 2001 From: Pirmin Kalberer Date: Wed, 25 Sep 2024 22:36:51 +0200 Subject: [PATCH] Fix Cypress shortcut d test --- src/components/ModalSources.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ModalSources.tsx b/src/components/ModalSources.tsx index 7ec8c873..05a5c09d 100644 --- a/src/components/ModalSources.tsx +++ b/src/components/ModalSources.tsx @@ -51,7 +51,7 @@ function editorMode(source: SourceSpecification) { } if(source.type === 'vector') { if(source.tiles) return 'tile_vector' - if(source.url!.startsWith("pmtiles://")) return 'pmtiles_vector' + if(source.url && source.url.startsWith("pmtiles://")) return 'pmtiles_vector' return 'tilejson_vector' } if(source.type === 'geojson') {