International-Data-Spaces-Association / DataspaceConnectorUI

User interface for the Dataspace Connector.
Apache License 2.0
10 stars 12 forks source link

DSC-UI gets the 0th-configuration instead of active configuration #301

Closed omarsilva1 closed 1 year ago

omarsilva1 commented 1 year ago

https://github.com/International-Data-Spaces-Association/DataspaceConnectorUI/blob/b223ba7ae9e3641a874c25e3105a8989c35107ce/src/utils/dataUtils.js#L1256-L1262

Describe the Bug

The DSC-UI sometimes cant make changes to the DSC configuration if the are multiple configurations and the active configuration isnt in the 0th inde. The problem seems to be that the UI gets the configuration at index 0 instead of the currently active configuration. The configuration being changed is a configuration that isn't the active one, so that the changes arent reflected in the self description as well.

To get the active configuration you can use the /api/configurations/active endpoint.

I'll try bringing out a quick fix.