@@ -105,8 +105,11 @@ function appendBlackAndWhiteListLabelingTask(appendTo, searchElement, labelingTa
105105 appendTo . push ( appendBlackAndWhiteListLabelingTaskForArray ( appendTo , searchElement . values . weakSupervisionLabels , LabelSource . WEAK_SUPERVISION , drillDown ) ) ;
106106 appendTo . push ( appendBlackAndWhiteListLabelingTaskForArray ( appendTo , searchElement . values . modelCallbackLabels , LabelSource . MODEL_CALLBACK , drillDown ) ) ;
107107 appendTo . push ( appendBlackAndWhiteListLabelingTaskForArray ( appendTo , searchElement . values . heuristics , LabelSource . INFORMATION_SOURCE , drillDown ) ) ;
108- appendTo . push ( appendBlackAndWhiteListLabelingTaskForConfidence ( appendTo , searchElement . values . weakSupervisionConfidence , labelingTask . labels . map ( l => l . id ) , true ) ) ;
109- appendTo . push ( appendBlackAndWhiteListLabelingTaskForConfidence ( appendTo , searchElement . values . modelCallbackConfidence , labelingTask . labels . map ( l => l . id ) , false ) ) ;
108+ if ( labelingTask ) {
109+ appendTo . push ( appendBlackAndWhiteListLabelingTaskForConfidence ( appendTo , searchElement . values . weakSupervisionConfidence , labelingTask . labels . map ( l => l . id ) , true ) ) ;
110+ appendTo . push ( appendBlackAndWhiteListLabelingTaskForConfidence ( appendTo , searchElement . values . modelCallbackConfidence , labelingTask . labels . map ( l => l . id ) , false ) ) ;
111+ }
112+
110113 if ( ! appendTo ) return ;
111114
112115 const isMixed = searchElement . values . isWithDifferentResults
@@ -279,7 +282,7 @@ function appendBlackAndWhiteListUserForArray(
279282 return JSON . stringify ( whitelist ) ;
280283 if ( blacklist . SUBQUERIES . length > 0 )
281284 return JSON . stringify ( blacklist ) ;
282- return appendTo ;
285+ return null ;
283286}
284287
285288
0 commit comments