Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

fix map panel crash by setting map_type#49

Merged
kualta merged 1 commit into
mainfrom
fix/map-type-config
May 11, 2026
Merged

fix map panel crash by setting map_type#49
kualta merged 1 commit into
mainfrom
fix/map-type-config

Conversation

@kualta

@kualta kualta commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • OO's `convertMapsData.ts:95` does `panelSchema.config?.map_type.type` — the optional chain bails out on `map_type` but then dereferences `.type` directly, throwing "Cannot read properties of undefined (reading 'type')". Setting `config.map_type = {"type": "world"}` makes the renderer happy.

@kualta
kualta merged commit 88018be into main May 11, 2026
2 checks passed
@kualta
kualta deleted the fix/map-type-config branch May 11, 2026 14:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant