Skip to content

Commit 0bfe216

Browse files
committed
fix ut
1 parent 5dc375a commit 0bfe216

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/mapping/utils/SourceListModelV3.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ export class SourceListModelV3 extends AppreciableLayerBase {
190190
_generateBaseLayerInfo(layerCatalog, layers) {
191191
const nextLayerCatalog = layerCatalog.slice();
192192
const originBaseLayerCatalog = nextLayerCatalog.pop();
193+
if (!originBaseLayerCatalog) {
194+
return;
195+
}
193196
const renderLayers = this._getBaseLayerRenderLayers(originBaseLayerCatalog, layers);
194197
const baseLayersOnMap = renderLayers.map((layer) => {
195198
const nextLayer = { ...layer };

0 commit comments

Comments
 (0)