cytoscape / cx2js

A CX to Cytoscape JS library
MIT License
3 stars 1 forks source link

Bug: Small Corpus network can't be displayed in web app. #22

Closed dotasek closed 5 years ago

dotasek commented 5 years ago

Original here: https://ndexbio.atlassian.net/browse/NWA-383

This network is not displaying on production:

http://www.ndexbio.org/#/network/d9cb80f7-81c2-11e6-b0a6-06603eb7f303?accesskey=543e52063fe98ced2836c5d2c23c4d8f824fbff52e6f3379a381ec82eeb85a1b

Looking at the web console, I have this error message there:

Error: stringifyFunctionTerm is not defined value@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:23:23726 value/<@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:23:8355 h@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:23:24329 gh@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:25:1910 value@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:23:8300 R@http://public.ndexbio.org/scripts/scripts.d6018f49.js:6:4479 Z/<@http://public.ndexbio.org/scripts/scripts.d6018f49.js:6:19763 j.getCompleteNetworkInCXV2/k.success/<@http://public.ndexbio.org/scripts/scripts.d6018f49.js:2:2339 o/k.success/<@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:2:8036 i@http://public.ndexbio.org/scripts/vendor.2ea6cb36.js:2:25067

Could you take a look if it is an error in cx2js library?

dotasek commented 5 years ago

There was an issue with recursive class calls within the lodash library we're using in stringifyFunctionTerm.

I've refactored to work around this; version 0.5.0 contains this fix.