From d8c8c3b77f66b580ee83992be4cbeef9a5ed713d Mon Sep 17 00:00:00 2001 From: Eddasol Date: Tue, 7 Nov 2023 13:09:19 +0100 Subject: [PATCH] Fix localization map --- backend/api/Controllers/Models/AreaResponse.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/Controllers/Models/AreaResponse.cs b/backend/api/Controllers/Models/AreaResponse.cs index 934bacd84..600121c01 100644 --- a/backend/api/Controllers/Models/AreaResponse.cs +++ b/backend/api/Controllers/Models/AreaResponse.cs @@ -16,7 +16,7 @@ public class AreaResponse public MapMetadata MapMetadata { get; set; } - public DefaultLocalizationPose? DefaultLocalizationPose { get; set; } + public Pose? DefaultLocalizationPose { get; set; } public IList SafePositions { get; set; } @@ -28,7 +28,7 @@ public AreaResponse(Area area) InstallationCode = area.Installation.InstallationCode; AreaName = area.Name; MapMetadata = area.MapMetadata; - DefaultLocalizationPose = area.DefaultLocalizationPose; + DefaultLocalizationPose = area.DefaultLocalizationPose?.Pose; SafePositions = area.SafePositions; } }