Skip to content

Commit

Permalink
fix: get active configuration instead of first configuration (#302)
Browse files Browse the repository at this point in the history
* fix: get active configuration instead of first

* chore: changelog
  • Loading branch information
omarsilva1 authored Nov 3, 2022
1 parent b223ba7 commit 0d0ea1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 1 addition & 5 deletions src/utils/dataUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

Expand Down

0 comments on commit 0d0ea1a

Please sign in to comment.