MauroDataMapper/mdm-ui

Not Found error when searching Data Types to add to a new Data Element

Closed this issue · 0 comments

Describe the bug
Get a Not Found error when searching Data Types to add to a new Data Element

To Reproduce
Steps to reproduce the behavior:

  1. Using the bootstrapped Complex Test DataModel, select the 'content' Data Class and add a new Data Element
  2. Search existing Data Types, by for example typing 's' into the search box
  3. Get a Not Found error

Expected behavior
List of data types should be displayed

Desktop (please complete the following information):

  • OS: iOS
  • Safari
  • Latest (at the time of writing) develop branches of mdm-ui and mdm-resources

Additional context
It looks like the UI is using the Data Class ID rather than Data Model ID in the endpoint /dataModels/{dataModelId}/dataTypes