Diagram deserialization with preventDefaults

Hi,

When I set the preventDefaults to true for my diagram

            <e-diagram-serializationsettings preventDefaults="true"/>

And I serialize/Deserialize the diagram:

       const jsonData = this.diagram.saveDiagram(); // That works fine, jsonData is well formed

       var test = this.diagram.loadDiagram(jsonData);

I have this javascript error:

       Uncaught TypeError: Cannot read property 'type' of undefined

Regards,

Laurent


3 Replies 1 reply marked as answer

AM Arunkumar Manoharan Syncfusion Team August 2, 2021 11:30 AM UTC

Hi Laurent,     
on the further analysis of the shared details, we have created a sample and added your code and checked on our end and we found it’s working fine. we couldn’t be able to replicate your issue in our end. so, we have attached our working sample please check it and replicate your working steps in it so that we can be able to serve you better. For more information, please refer to below sample link. 
 
Regards,
Arun.
 


Marked as answer

LA Laurent August 24, 2021 01:50 PM UTC

Hi,


I have update my version of Syncfusion, and now it works.


Regards,

Laurent



GG Gowtham Gunashekar Syncfusion Team August 25, 2021 12:03 PM UTC

Hi Laurent,  
 
 
Thanks for your update. Please let us know whether you need any further assistance on this. 
 
 
Regards  
 
Gowtham 


Loader.
Up arrow icon