From: Vaneet L. <van...@uc...> - 2024-05-03 07:47:21
|
Hello, I'm getting a strange error when trying to reference a callback function to replace my dbxref field, something I've done many times for every other genome using the same code and syntax without fail using this line: "fmtDetailValue_Dbxref" : "{dbxLinks}", I also have the include statement referencing which file contains my functions added into this genome's trackList.json file: "include" : "functions.conf", Here's the error I get when trying to click on a gene model to view its details: Uncaught TypeError: u is not a function at Object.renderDetailValue (1.bundle.js:1:555217) at Object.renderDetailField (1.bundle.js:1:554833) at 1.bundle.js:1:388369 at Array.forEach (<anonymous>) at Object._renderAdditionalTagsDetail (1.bundle.js:1:388346) at Object.defaultFeatureDetail (1.bundle.js:1:386667) at Object.<anonymous> (0.bundle.js:1:20292) at Object._evalConf (1.bundle.js:1:285747) at Object._openDialog (1.bundle.js:1:286530) at Object.n (1.bundle.js:1:283338) I'm not sure which 'u' it's referring to, I'm just hoping one of you has seen this error before. The strange part is if I remove the 'include' statement, the error remains. If I change the 'dbxLinks' to anything else or any random set of letters, it still fails with the same error. If I set it to an empty string between the double quotes it at least allows me to open the gene model details but obviously doesn't change the dbxref field. If I manually write a function in there instead of referencing a function in an external file, it seems to work. I don't understand why this time it has a problem with me referencing a callback function when I've used the same function and code so many times with no issue. Thanks Vaneet |