Skip to content

Commit

Permalink
fix: map tile set not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanInnes committed Jun 26, 2021
1 parent a38ecbf commit 3193ae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Map/MenuPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ const MenuPanel = (props: MenuPanelProps): JSX.Element => {
<div onChange={handleTileSelect} className="flex flex-row space-x-4">
{
props.availableTileSets.map((tileSet) => (
<label className="tileset-select flex-grow" key={tileSet.value} htmlFor="tileset">
<label className="tileset-select flex-grow" key={tileSet.value} htmlFor={tileSet.value}>
<input
type="radio"
id={tileSet.value}
name="tileset"
value={tileSet.value}
defaultChecked={props.activeTileSet && tileSet.value === props.activeTileSet.value}
Expand Down

0 comments on commit 3193ae8

Please sign in to comment.