Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Oct 11, 2024
1 parent 4428348 commit 78dcbee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/map/core/mapUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const geofenceToFeature = (theme, item) => {
export const geometryToArea = (geometry) => stringify(reverseCoordinates(geometry));

export const findFonts = (map) => {
const glyphs = map.getStyle().glyphs;
const { glyphs } = map.getStyle();
if (glyphs.startsWith('https://tiles.openfreemap.org')) {
return ['Noto Sans Regular'];
}
Expand Down
6 changes: 3 additions & 3 deletions src/map/draw/MapGeofenceEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { map } from '../core/MapView';
import { findFonts, geofenceToFeature, geometryToArea } from '../core/mapUtil';
import { errorsActions, geofencesActions } from '../../store';
import { useCatchCallback } from '../../reactHelper';
import theme from './theme';
import drawTheme from './theme';
import { useTranslation } from '../../common/components/LocalizationProvider';

MapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';
Expand All @@ -32,7 +32,7 @@ const MapGeofenceEdit = ({ selectedGeofenceId }) => {
trash: true,
},
userProperties: true,
styles: [...theme, {
styles: [...drawTheme, {
id: 'gl-draw-title',
type: 'symbol',
filter: ['all'],
Expand All @@ -47,7 +47,7 @@ const MapGeofenceEdit = ({ selectedGeofenceId }) => {
},
}],
}), []);

const geofences = useSelector((state) => state.geofences.items);

const refreshGeofences = useCatchCallback(async () => {
Expand Down

0 comments on commit 78dcbee

Please sign in to comment.