From 52b2d60c270fe8817f0e0f243cd411fa294b11c6 Mon Sep 17 00:00:00 2001 From: Audrey Serra Date: Mon, 23 May 2022 13:58:08 +0200 Subject: [PATCH] LastDeployment set to null on EdgeDevice if no configuration is found. --- .../Server/Controllers/v1.0/EdgeDevicesController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs b/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs index d2625a8fb..13069d8be 100644 --- a/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs +++ b/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs @@ -359,9 +359,9 @@ private async Task RetrieveLastConfiguration(Twin twin) item.Status = nameof(ConfigurationStatus.Applied); } } + return item; } - - return item; + return null; } } }