Skip to content

Commit 423099c

Browse files
committed
[ut] fix ut
(reviewed by xjj)
1 parent 1ce7f30 commit 423099c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/mapping/WebMapV3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, crsMa
489489
const mapboxSourceIds = mapboxglLayers.map((layer) => layer.source);
490490
for(const sourceId of mapboxSourceIds) {
491491
const source = sources[sourceId];
492-
if(source.type === 'geojson' && source.data?.type === 'supermap-rest-data') {
492+
if(source && source.type === 'geojson' && source.data && source.data.type === 'supermap-rest-data') {
493493
source.data = await l7LayerUtil.getRestDataGeojsonByWebMap(source.data, {iportalServiceProxyUrlPrefix: this.options.server, withoutFormatSuffix: true});
494494
}
495495
}

0 commit comments

Comments
 (0)