diff --git a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor
index 075524459..1c3045805 100644
--- a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor
+++ b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor
@@ -107,42 +107,38 @@
break;
case DevicePropertyType.Double:
- string.IsNullOrEmpty(c) || double.TryParse(c, out var result))
- Clearable="true" />
+ string.IsNullOrEmpty(c) || double.TryParse(c, out var result))
+ Clearable="true" />
break;
case DevicePropertyType.Float:
- string.IsNullOrEmpty(c) || float.TryParse(c, out var result))
- Clearable="true" />
+ string.IsNullOrEmpty(c) || float.TryParse(c, out var result))
+ Clearable="true" />
break;
case DevicePropertyType.Integer:
- string.IsNullOrEmpty(c) || int.TryParse(c, out var result))
- Clearable="true" />
+ string.IsNullOrEmpty(c) || int.TryParse(c, out var result))
+ Clearable="true" />
break;
case DevicePropertyType.Long:
- string.IsNullOrEmpty(c) || long.TryParse(c, out var result))
- Clearable="true" />
+ string.IsNullOrEmpty(c) || long.TryParse(c, out var result))
+ Clearable="true" />
break;
case DevicePropertyType.String:
@@ -214,10 +210,10 @@
else
{
Device = await Http.GetFromJsonAsync($"{ApiUrlBase}/{DeviceID}");
+ Properties = await Http.GetFromJsonAsync>($"{ApiUrlBase}/{DeviceID}/properties");
}
TagList = await Http.GetFromJsonAsync>($"/api/settings/device-tags");
- Properties = await Http.GetFromJsonAsync>($"{ApiUrlBase}/{DeviceID}/properties");
isLoaded = true;
}