阅片比例尺工具问题修复
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-11-07 13:23:18 +08:00
parent ecb146bd67
commit 7d57f6b5f6
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class ScaleOverlayTool extends AnnotationDisplayTool {
}
enabledElements.forEach((element) => {
const { viewport } = element;
if (!viewportsWithAnnotations.includes(viewport.id) || annotations.length === 0) {
if (!viewportsWithAnnotations.includes(viewport.id) || annotations.length === 0 || !annotation) {
const newAnnotation = {
metadata: {
toolName: this.getToolName(),