File tree Expand file tree Collapse file tree
components/AnnotationsCarousel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export const AnnotationButton = observer(
101101
102102 if ( ! selected ) {
103103 if ( type === "prediction" ) {
104- annotationStore . selectPrediction ( id ) ;
104+ annotationStore . selectPrediction ( id , { exitViewAll : true } ) ;
105105 } else {
106106 annotationStore . selectAnnotation ( id , { exitViewAll : true } ) ;
107107 }
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ const AnnotationStoreModel = types
5252 } ,
5353
5454 get viewingAll ( ) {
55+ // Even if we have View All flag stored as true, but we are in environment without it
56+ // or if we are not ready yet — don't go into View All mode, it will be broken.
57+ if ( ! self . initialized ) return false ;
58+ if ( ! self . store . hasInterface ( "annotations:view-all" ) ) return false ;
5559 return self . viewingAllAnnotations ;
5660 } ,
5761 } ) )
You can’t perform that action at this time.
0 commit comments