Skip to content

Commit

Permalink
Grass curing CWFIS double click (#3443)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss authored Feb 29, 2024
1 parent 610822c commit 2add862
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web/src/features/moreCast2/components/TabbedDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,7 @@ const TabbedDataGrid = ({ morecast2Rows, fromTo, setFromTo }: TabbedDataGridProp
// grass curing related fields.
const handleCellDoubleClick = (params: GridCellParams) => {
const headerName = params.colDef.headerName as WeatherDeterminateType
if (
!headerName ||
headerName === WeatherDeterminate.ACTUAL ||
headerName === WeatherDeterminate.FORECAST ||
params.field.includes('grass')
) {
if (!headerName || headerName === WeatherDeterminate.ACTUAL || headerName === WeatherDeterminate.FORECAST) {
// A forecast or actual column was clicked, or there is no value for headerName, nothing to do
return
}
Expand Down

0 comments on commit 2add862

Please sign in to comment.