Skip to content

Commit

Permalink
fix: MST warning on closing map component (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
kswenson authored May 19, 2024
1 parent cfb224a commit d453582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v3/src/components/map/components/map-point-layer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {useCallback, useEffect, useRef} from "react"
import {comparer, reaction} from "mobx"
import { observer } from "mobx-react-lite"
import { isAlive } from "mobx-state-tree"
import * as PIXI from "pixi.js"
import {mstReaction} from "../../../utilities/mst-reaction"
import {onAnyAction} from "../../../utilities/mst-utils"
Expand Down Expand Up @@ -33,7 +34,7 @@ interface IProps {

export const MapPointLayer = observer(function MapPointLayer({mapLayerModel, onSetPixiPointsForLayer}: IProps) {
const {dataConfiguration, pointDescription} = mapLayerModel,
dataset = dataConfiguration?.dataset,
dataset = isAlive(dataConfiguration) ? dataConfiguration?.dataset : undefined,
mapModel = useMapModelContext(),
{isAnimating} = useDataDisplayAnimation(),
leafletMap = useMap(),
Expand Down

0 comments on commit d453582

Please sign in to comment.