Skip to content

Commit

Permalink
fixed import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
al-rosenthal committed Jan 16, 2024
1 parent c91e829 commit 54cf8f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/features/submissions/components/SubmissionDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
GridValueGetterParams
} from '@mui/x-data-grid';
import { useCodesContext } from 'hooks/useContext';
import { IFeatureTypeProperties } from 'interfaces/useCodesApi.interface';
import { FeaturePropertyCode } from 'interfaces/useCodesApi.interface';
import { SubmissionFeatureRecordWithTypeAndSecurity } from 'interfaces/useSubmissionsApi.interface';

export interface ISubmissionDataGridProps {
Expand All @@ -39,13 +39,13 @@ export const SubmissionDataGrid = (props: ISubmissionDataGridProps) => {
featureTypesWithProperties?.find((item) => item.feature_type['name'] === feature_type_name)
?.feature_type_properties || [];

const fieldColumns = featureTypeWithProperties.map((featureType: IFeatureTypeProperties) => {
const fieldColumns = featureTypeWithProperties.map((featureType: FeaturePropertyCode) => {

Check warning on line 42 in app/src/features/submissions/components/SubmissionDataGrid.tsx

View check run for this annotation

Codecov / codecov/patch

app/src/features/submissions/components/SubmissionDataGrid.tsx#L42

Added line #L42 was not covered by tests
return {
field: featureType.name,
headerName: featureType.display_name,
field: featureType.feature_property_type_name,
headerName: featureType.feature_property_display_name,
flex: 1,
disableColumnMenu: true,
valueGetter: (params: GridValueGetterParams) => params.row.data[featureType.name] ?? null,
valueGetter: (params: GridValueGetterParams) => params.row.data[featureType.feature_property_type_name] ?? null,
renderCell: (params: GridRenderCellParams) => {
return (
<Box
Expand Down

0 comments on commit 54cf8f4

Please sign in to comment.