Skip to content

Commit

Permalink
fix:possible fix for map display
Browse files Browse the repository at this point in the history
  • Loading branch information
TanjimAnim committed Sep 20, 2022
1 parent 2ce3d3e commit ad88ac5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/map/mapDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { useRef, useEffect, useState } from "react";
// notice the exclamation point in the import.
// @ts-ignore
// eslint-disable-next-line import/no-webpack-loader-syntax, import/no-unresolved
mapboxgl.workerClass =
require("worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker").default;
mapboxgl.workerClass = require("worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker").default;

const Title = styled.div`
display: flex;
Expand Down

0 comments on commit ad88ac5

Please sign in to comment.