From f05dc69ec7ca04f5afd8314290a65724d1f79331 Mon Sep 17 00:00:00 2001 From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr> Date: Mon, 5 Feb 2024 22:26:51 +0100 Subject: [PATCH] Support annotation with manifest --- src/components/AnnotationManifestsAccordion.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/AnnotationManifestsAccordion.js b/src/components/AnnotationManifestsAccordion.js index dd4e2a86e..fb173f5f4 100644 --- a/src/components/AnnotationManifestsAccordion.js +++ b/src/components/AnnotationManifestsAccordion.js @@ -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 }; } -- GitLab