Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  


angular ui grid Possibly unhandled rejection: canceled
Started getting this error logged to console from angular ui grid after upgrading angular.js to 1.6:

'Possibly unhandled rejection: canceled'

Solution: Change angular js itself to not log this error.

Simply find this line in angular.js:
var errorMessage = 'Possibly unhandled rejection: ' + toDebugString(toCheck.value);
And add this after it:

if (toCheck.value == 'canceled') { } // ignore cancelled error
else // continue logging

This will skip logging any error with message 'canceled' which is a meaningless error coming from angular ui grid.

Be sure to reminify the .min file as well.

Created By: amos 4/25/2018 5:19:44 PM
Updated: 4/25/2018 5:20:12 PM