Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
okauppinen committed Aug 8, 2023
1 parent 49e287d commit dbdd097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundles/admin/admin-layereditor/view/LayerHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getGeometryType = layer => {
if (attributes?.data?.geometryType) {
return attributes.data.geometryType;
}
const { geomName, featureProperties = []} = capabilities;
const { geomName, featureProperties = [] } = capabilities;
const capaType = featureProperties.find(prop => prop.name === geomName)?.type.toLowerCase() || '';
// SurfacePropertyType, GeometryPropertyType, PointPropertyType, MultiLineStringPropertyType, MultiPolygon,...
if (AREA_TYPES.find(type => capaType.includes(type))) {
Expand Down

0 comments on commit dbdd097

Please sign in to comment.