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

This commit is contained in:
2025-11-07 13:23:18 +08:00
parent ecb146bd67
commit 7d57f6b5f6
@@ -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(),