puissance d'agir bug fix

This commit is contained in:
Bachir Soussi Chiadmi 2024-05-29 20:23:05 +02:00
parent f3703d6657
commit b260ab1b87

View File

@ -804,7 +804,7 @@ export default {
// then scale again to new size
this.paper_main_object.scale(this.details_zoom_scale);
// resize entites (dim them while we zoomin)
if(this.paper_main_object.children){
if(this.paper_main_object.children && this.paper_main_object.children['entites']){
this.paper_main_object.children['entites'].children.forEach((child) => {
if(child.name === 'entite'){
// revert to the original size (by reverting the previous scale)