Composer-Defaults fails with latest master
-
Hi Devs,
Pulled the latest code today.
There seems to be an issue with composer-defaults failing at websockets line 128:error: uncaughtException: Cannot read property 'children' of undefined
TypeError: Cannot read property 'children' of undefined
at /home/nodebb/www/nodebb/node_modules/nodebb-plugin-composer-default/websockets.js:128:73Any idea what went wrong?
Here is the relevant piece of code from websockets.js:
const hasChildren = !!c.children.length; if (hasChildren) { c.disabledClass = true; } else if (c.parent) { cidToCategory[c.parent.cid].children = cidToCategory[c.parent.cid].children.filter(child => { return child.cid !== c.cid; }); }
-
Hi @julian that's a tough one.
I have been trying to debug this issue before I posted but was unable to re-create the crash.
All I have is the logs to go with, unfortunately.
I posted in hope that this error may be related to something that was worked on in the past few days.
My apology for not being so helpful.
JJ.
Copyright © 2024 NodeBB | Contributors