File tree Expand file tree Collapse file tree
packages/lb-components/src/store/annotation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -496,6 +496,8 @@ export const annotationReducer = (
496496
497497 annotationEngine ?. launchOperation ( ) ;
498498
499+ const isNoDataSourceTool = [ EToolName . Cuboid , EToolName . ScribbleTool ] . includes ( tool ) ;
500+
499501 if ( hasDataSourceStep ) {
500502 if ( stepBasicResultList ?. length > 0 ) {
501503 annotationEngine ?. setBasicInfo ( dependStepConfig . tool , stepBasicResultList [ basicIndex ] ) ;
@@ -508,7 +510,7 @@ export const annotationReducer = (
508510 }
509511
510512 // TODO,非查看模式才允许添加数据
511- if ( currentStepInfo . tool !== 'check' && hasDataSourceStep ) {
513+ if ( currentStepInfo . tool !== 'check' && ( isNoDataSourceTool || hasDataSourceStep ) ) {
512514 const sourceID = stepBasicResultList [ basicIndex ] ?. id ?? '' ;
513515 const resultForBasicIndex = hasDataSourceStep
514516 ? result . filter ( ( i : { sourceID : string | number } ) =>
You can’t perform that action at this time.
0 commit comments