General developer forum

JS notification removal

 
asd
JS notification removal
Group Core developersGroup Plugin developersGroup Translators

Here https://github.com/moodle/moodle/blob/master/mod/assign/amd/src/participant_selector.js at row 111 is defined ).catch(

But it throws JS error - "Uncaught TypeError: a.call(...)[0].then(...).then(...).catch is not a function"

Checked the overall Moodle code and catch is not actually used anywhere. Instead ).fail( is used in many places. I replaced catch with fail and JS error is gone.


Just a quick note. Hope this helps.

 
Average of ratings: -
Gareth J Barnard
Re: JS notification removal
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

Perhaps raise a Moodle Tracker issue on this?

 
Average of ratings: -