diff --git a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor index 84887b4ec..f66e22c18 100644 --- a/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor +++ b/src/AzureIoTHub.Portal/Client/Pages/Devices/DeviceDetailPage.razor @@ -243,7 +243,7 @@ if (IsLoRa) { Device = await LoRaWanDeviceClientService.GetDevice(DeviceID); - Commands = await LoRaWanDeviceModelsClientService.GetDeviceModelCommands(Device.DeviceID); + Commands = await LoRaWanDeviceModelsClientService.GetDeviceModelCommands(Device.ModelId); DeviceModel = await LoRaWanDeviceModelsClientService.GetDeviceModel(Device.ModelId); } else