Skip to content

Commit

Permalink
fix(map): handle empty layer references (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
corinacioloca authored Sep 24, 2020
1 parent cb901c3 commit ff7a5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/earth-map/src/sagas/saga-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const onlyMatch = (actionToMatch: string | Function, payload: any): Funct
export const flattenLayerConfig = (layer: ILayerRaw) => {
const adaptedLayer = flattenEachLayerConfig(layer);

if (!!adaptedLayer?.references.length) {
if (!!adaptedLayer?.references?.length) {
const adaptedReferences = layer.references.map(flattenEachLayerConfig);

return {
Expand Down

0 comments on commit ff7a5d1

Please sign in to comment.