General note label displayed even if the field doesn't exist #3523
Labels
bug
Breaks something but is not blocking
client request
Issue reported by production libraries
f: professional ui
Professional interface
UX
User experience, ergonomy
Bug description:
In the professionnal detailed view of some documents. The label "General note" is displayed even though the field doesn't exist.
Expected behavior:
When a field doesn't exist, the label in the description should not be displayed.
Steps to Reproduce:
Example : https://bib.rero.ch/professional/records/documents/detail/2193979
It seems this only happens for documents that do not contain any
note
subfield. If another type of note is present, the "general note" label is not shown.Other remarks
See conditions in https://github.com/rero/rero-ils-ui/blob/staging/projects/admin/src/app/record/detail-view/document-detail-view/document-description/document-description.component.ts#L139-L155
Context
The text was updated successfully, but these errors were encountered: