diff --git a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue index bb0d943b..89401e3b 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue @@ -1008,11 +1008,11 @@ export default { let res = await deleteTrialFileType(annotation.id) if (!res.IsSuccess) throw '' } - let psIndex = this.psArr.findIndex(item => item.Path === annotation.path) - if (psIndex > -1) { - this.psArr.splice(psIndex, 1) - } if (annotation.metadata.toolName === 'Lengthscale') { + let psIndex = this.psArr.findIndex(item => item.Path === annotation.path) + if (psIndex > -1) { + this.psArr.splice(psIndex, 1) + } this.$emit('getEcrf', { type: "changePlottingScaleChangeAnswer", VisitTaskId: this.taskInfo.VisitTaskId, noneDicomFileId: annotation.noneDicomFileId, path: annotation.path || '', picturePath: null, psArr: this.psArr, isRemovePlottingScale: false }) this.setToolsPassive() }