From 0d0ea1afc38b2de5a20076305051710e6928d7e1 Mon Sep 17 00:00:00 2001 From: Omar Silva <77329033+omarsilva1@users.noreply.github.com> Date: Thu, 3 Nov 2022 12:36:14 +0100 Subject: [PATCH] fix: get active configuration instead of first configuration (#302) * fix: get active configuration instead of first * chore: changelog --- CHANGELOG.md | 3 +++ src/utils/dataUtils.js | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9939748..61cf92f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file. ### Added - Endpoint Documentation to Meta Data page +### Fixed +- Fixed the UI to get the active configuration of the DSC + ### Changed - renamed variable standardlicense to standardLicense diff --git a/src/utils/dataUtils.js b/src/utils/dataUtils.js index 96682f4..08c4185 100644 --- a/src/utils/dataUtils.js +++ b/src/utils/dataUtils.js @@ -1254,11 +1254,7 @@ export default { }, async getConnectorConfiguration() { - let configurations = (await restUtils.callConnector("GET", "/api/configurations"))._embedded.configurations; - let configuration = undefined; - if (configurations !== undefined && configurations.length > 0) { - configuration = configurations[0]; - } + let configuration = (await restUtils.callConnector("GET", "/api/configurations/active")); return clientDataModel.convertIdsConfiguration(configuration); },