File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
web_ui/src/pages/annotator/providers/annotator-provider Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export const AnnotatorProvider = ({ children }: AnnotatorProviderProps): JSX.Ele
6969
7070 const [ activeTool , setActiveTool ] = useState < ToolType > ( ( ) => defaultToolForProject ( activeDomains ) ) ;
7171
72- const { selectedMediaItem, predictionsQuery, explanationsQuery } = useSelectedMediaItem ( ) ;
72+ const { selectedMediaItem, predictionsQuery } = useSelectedMediaItem ( ) ;
7373 const isTaskChainSelectedClassification = isTaskChainDomainSelected ( DOMAIN . CLASSIFICATION ) ;
7474
7575 const initialPredictionAnnotations = predictionsQuery . data ?. annotations ;
@@ -79,7 +79,6 @@ export const AnnotatorProvider = ({ children }: AnnotatorProviderProps): JSX.Ele
7979 userProjectSettings ,
8080 isTaskChainSelectedClassification
8181 ) ;
82- const explanations = explanationsQuery . data || [ ] ;
8382
8483 const { undoRedoActions, ...userAnnotationScene } = useAnnotationSceneState (
8584 initialAnnotations ,
@@ -110,7 +109,7 @@ export const AnnotatorProvider = ({ children }: AnnotatorProviderProps): JSX.Ele
110109 settings = { userProjectSettings }
111110 userAnnotationScene = { userAnnotationScene }
112111 initPredictions = { initialPredictionAnnotations }
113- explanations = { explanations || EMPTY_EXPLANATION }
112+ explanations = { selectedMediaItem ?. explanations || EMPTY_EXPLANATION }
114113 >
115114 < SubmitAnnotationsProvider
116115 settings = { userProjectSettings }
You can’t perform that action at this time.
0 commit comments