diff --git a/src/pages/logos/LogoAnnotation.jsx b/src/pages/logos/LogoAnnotation.jsx index e4ff1abe4..f7e120c46 100644 --- a/src/pages/logos/LogoAnnotation.jsx +++ b/src/pages/logos/LogoAnnotation.jsx @@ -189,7 +189,9 @@ export default function LogoAnnotation() { return { ...state, logos: state.logos.map((logo) => - shouldBeSet[logo.id] + shouldBeSet[logo.id] && + logo.annotation_type === null && + logo.annotation_value === null ? { ...logo, selected: newSelectedState, @@ -205,7 +207,8 @@ export default function LogoAnnotation() { ...prevState, logos: prevState.logos.map((logo, index) => { if (logo.annotation_value === null) { - logo.selected = true; + logo.selected = + logo.annotation_type === null && logo.annotation_value === null; } return logo; }), diff --git a/src/pages/logos/LogoDeepSearch.jsx b/src/pages/logos/LogoDeepSearch.jsx index ee5567c8d..49921cc34 100644 --- a/src/pages/logos/LogoDeepSearch.jsx +++ b/src/pages/logos/LogoDeepSearch.jsx @@ -252,7 +252,9 @@ export default function LogoSearch() { ids.forEach((id) => (shouldBeSet[id] = true)); return logos.map((logo) => - shouldBeSet[logo.id] + shouldBeSet[logo.id] && + logo.annotation_type === null && + logo.annotation_value === null ? { ...logo, selected: newSelectedState,