Skip to content

Commit

Permalink
- Requested changes for finding geometryType
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-massie committed Jan 8, 2025
1 parent efa3dee commit e327f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/components/AssetDetail/AssetGeometry.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import * as turf from '@turf/turf';
import { Feature, FeatureType, getFeatureType } from '@hazmapper/types';
import { Feature, FeatureType } from '@hazmapper/types';

interface AssetGeometryProps {
selectedFeature: Feature;
Expand All @@ -15,7 +15,7 @@ const AssetGeometry: React.FC<AssetGeometryProps> = ({ selectedFeature }) => {
? turf.bbox(selectedFeature)
: null;

const geometryType: FeatureType = getFeatureType(selectedFeature);
const geometryType = selectedFeature.geometry.type

Check failure on line 18 in react/src/components/AssetDetail/AssetGeometry.tsx

View workflow job for this annotation

GitHub Actions / React-Linting

Insert `;`

return (
<>
Expand Down

0 comments on commit e327f6a

Please sign in to comment.