You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Thumbnail display issue for a new background #11883
Root Cause:
In this file web/client/components/background/BackgroundSelector.jsx:
getCurrentBackground() uses backgroundsProp.find(bg => bg.visibility === true), which returns the first visible background.
It does not exclude terrain layers, so as the terrain layer appears before the new background and both are visible, the terrain layer is filtered and selected.
Terrain layers don't have thumbnail images.
Problem Scenario:
The backgroundsProp has the list of backgrounds available. It also contains the terrain layer in it.
When a new background is added, it's appended to the end of backgroundsProp list.
As both the terrain layer and the new background have visibility === true, find() selects the terrain layer (first match).
The selector then tries to display a thumbnail for the terrain layer, which doesn't exist, resulting in no thumbnail or a broken image.
Solution:
Exclude terrain layers in getCurrentBackground() by filtering out type === 'terrain' before selecting the visible background.
Activity
subashtiwari1010 commentedon Jan 16, 2026
Investigation Report:
Root Cause:
In this file
web/client/components/background/BackgroundSelector.jsx:getCurrentBackground()usesbackgroundsProp.find(bg => bg.visibility === true), which returns the first visible background.Problem Scenario:
backgroundsProphas the list of backgrounds available. It also contains the terrain layer in it.backgroundsProplist.visibility === true,find()selects the terrain layer (first match).Solution:
getCurrentBackground()by filtering outtype === 'terrain'before selecting the visible background.Fix #11883 thumbnail issue in the background selector plugin (#11885)
Fix #11883 thumbnail issue in the background selector plugin (#11885) (…
Fix #11883 thumbnail issue in the background selector plugin (#11885) (…
Update to upstream v2026.01.02 (#77)