Skip to content

Commit

Permalink
Add debugging logs to Classifier hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Feb 10, 2022
1 parent ea68ebe commit ecf8fe6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function Classifier({
useEffect(function onURLChange() {
const { workflows } = classifierStore
if (workflowID) {
console.log('starting new subject queue', { workflowID, subjectSetID, subjectID })
workflows.selectWorkflow(workflowID, subjectSetID, subjectID)
}
}, [subjectID, subjectSetID, workflowID])
Expand All @@ -51,6 +52,7 @@ export default function Classifier({
if (workflowSnapshot) {
// pass the subjectSetID prop into the store as part of the new workflow data
workflowSnapshot.subjectSet = subjectSetID
console.log('Refreshing workflow snapshot', workflowSnapshot.id)
workflows.setResources([workflowSnapshot])
// TODO: the task area crashes without the following line. Why is that?
classifierStore.startClassification()
Expand Down

0 comments on commit ecf8fe6

Please sign in to comment.