Skip to content

Commit

Permalink
fix export label +
Browse files Browse the repository at this point in the history
Now correctly labels groups in export file. Also, basic edit.
  • Loading branch information
huss committed Feb 22, 2024
1 parent c4bdf38 commit e92c41d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/client/app/components/maps/MapsDetailComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import MapViewContainer from '../../containers/maps/MapViewContainer';
import { hasToken } from '../../utils/token';
import TooltipMarkerComponent from '../TooltipMarkerComponent';


interface MapsDetailProps {
maps: number[];
unsavedChanges: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/client/app/redux/thunks/exportThunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const exportGraphReadingsThunk = createAppThunk(
const sortedReadings = _.sortBy(Object.values(readings), item => item.startTimestamp, 'asc');
const entityName = selectNameFromEntity(entity);
const unitIdentifier = selectNameFromEntity(selectUnitById(state, selectSelectedUnit(state)))
graphExport(sortedReadings, entityName, lineUnitLabel, unitIdentifier, chartToRender, scaling, MeterOrGroup.meters, showMinMax);
graphExport(sortedReadings, entityName, lineUnitLabel, unitIdentifier, chartToRender, scaling, MeterOrGroup.groups, showMinMax);
})
}

Expand Down Expand Up @@ -89,7 +89,7 @@ export const exportGraphReadingsThunk = createAppThunk(
const sortedReadings = _.sortBy(Object.values(readings), item => item.startTimestamp, 'asc');
const entityName = selectNameFromEntity(entity);
const unitIdentifier = selectNameFromEntity(selectUnitById(state, selectSelectedUnit(state)))
graphExport(sortedReadings, entityName, barUnitLabel, unitIdentifier, chartToRender, scaling, MeterOrGroup.meters);
graphExport(sortedReadings, entityName, barUnitLabel, unitIdentifier, chartToRender, scaling, MeterOrGroup.groups);
})
}
return api.fulfillWithValue('success')
Expand Down

0 comments on commit e92c41d

Please sign in to comment.