ndisera / Sprout

0 stars 0 forks source link

Tests editing breaks when bad dates are input #525

Open HeliosPanoptes opened 6 years ago

HeliosPanoptes commented 6 years ago

Steps: Edit a test, and type a letter at the end of the date, then try to save. I was also getting the same error on what appeared to be valid input strings, but I couldn't reliably reproduce it

angular.js:14800 TypeError: score.date_temp.format is not a function at script.js:8961 at Function.findIndex (underscore.js:620) at Scope.$scope.saveScore (script.js:8961) at fn (eval at compile (angular.js:15651), <anonymous>:4:322) at callback (angular.js:27475) at Scope.$eval (angular.js:18542) at Scope.$apply (angular.js:18641) at HTMLButtonElement.<anonymous> (angular.js:27480) at HTMLButtonElement.dispatch (jquery.js:5183) at HTMLButtonElement.elemData.handle (jquery.js:4991)