Skip to content
Snippets Groups Projects
Commit f05dc69e authored by Anthony's avatar Anthony
Browse files

Support annotation with manifest

parent fd236dcb
Branches
No related tags found
No related merge requests found
Pipeline #1920 failed
......@@ -37,6 +37,12 @@ export class AnnotationManifestsAccordion extends Component {
// eslint-disable-next-line react/prop-types
annotation.manifests = annotation.manifests?.map(id => ({ id })) ?? [];
if(annotation.manifests.length = 0) {
if(annotation.manifestNetwork) {
annotation.manifests = annotation.manifestNetwork;
}
}
this.state = { annotation };
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment