Thanks Julian!
Mark thread as solved, working as intended, was just looking for this function inside the admin panel instead of the normal user view π
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; }); }
-
What are you doing when the error shows up?
-
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. -
Anyone ending here, the issue was observed by @baris and being discussed in this post:
https://community.nodebb.org/topic/13492/redactor-crashes-nodebb