Skip to content

Commit d8afc8b

Browse files
author
David Paquette
committed
Fix bug in Hazard Info details page
1 parent 3e4309e commit d8afc8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/TwoWeeksReady.Admin/Pages/HazardInfos/Details.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
<InputSelect id="iconUrl" class="form-control" @bind-Value="Hazard.IconUrl">
3939
@foreach(var image in clientImages.Images)
4040
{
41-
<option value="@image">@image</option>
41+
<option value="@image.RelativePath">@image.RelativePath</option>
4242
}
4343
</InputSelect>
4444
<img src="@clientImages.ToAbsolutePath(Hazard.IconUrl)"/>
@@ -49,7 +49,7 @@ else
4949
<InputSelect id="mediaUrl" class="form-control" @bind-Value="Hazard.MediaUrl">
5050
@foreach(var image in clientImages.Images)
5151
{
52-
<option value="@image">@image</option>
52+
<option value="@image.RelativePath">@image.RelativePath</option>
5353
}
5454
</InputSelect>
5555
<img src="@clientImages.ToAbsolutePath(Hazard.MediaUrl)"/>

0 commit comments

Comments
 (0)