diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js index 57a29181f849b5a5fb599a6b247a33658ed0962e..675931c1aa1bf5b9aeeca39130a7e97957c8a583 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js @@ -410,8 +410,14 @@ function SampleFormView(sampleFormController, sampleFormModel) { // //Repaint parents and children after updating the property state to show the annotations - this._sampleFormModel.sampleLinksParents.repaint(); - this._sampleFormModel.sampleLinksChildren.repaint(); + if(this._sampleFormModel.mode !== FormMode.VIEW || + this._sampleFormModel.mode === FormMode.VIEW && currentParentsLinks && currentParentsLinks.length !== 0) { + this._sampleFormModel.sampleLinksParents.repaint(); + } + if(this._sampleFormModel.mode !== FormMode.VIEW || + this._sampleFormModel.mode === FormMode.VIEW && currentChildrenLinks && currentChildrenLinks.length !== 0) { + this._sampleFormModel.sampleLinksChildren.repaint(); + } if(profile.softLinks) { if(currentOrphanLinksIdentifiers.length !== 0) {