@stoker-platform/web-app 0.5.158 → 0.5.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.159
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: fix initial map load not showing pins
8
+
3
9
  ## 0.5.158
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.158",
3
+ "version": "0.5.159",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/Map.tsx CHANGED
@@ -431,10 +431,10 @@ export function Map({
431
431
  }, [list, prevList, markers, recordTitleField, mapConfig])
432
432
 
433
433
  useEffect(() => {
434
- if (isLoaded && list) {
434
+ if (isLoaded && list && isMapReady) {
435
435
  fetchMarkers()
436
436
  }
437
- }, [list])
437
+ }, [list, isMapReady])
438
438
 
439
439
  const noLocationRecords = useMemo(() => {
440
440
  if (!mapConfig || !list) return []