You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ember.debug.js:29026 Error while processing route: <route-name> (0 , _emberMacroHelpersCollapseKeys.collapseKeysWithMap) is not a function TypeError: (0 , _emberMacroHelpersCollapseKeys.collapseKeysWithMap) is not a function
at Object.<anonymous> (http://localhost:4200/assets/vendor.js:180009:89)
at Module.callback (http://localhost:4200/assets/pachdash.js:3248:73)
at Module.exports (http://localhost:4200/assets/vendor.js:119:32)
at requireModule (http://localhost:4200/assets/vendor.js:34:18)
at Class._extractDefaultExport (http://localhost:4200/assets/vendor.js:182548:20)
at Class.resolveOther (http://localhost:4200/assets/vendor.js:182245:32)
at Class.superWrapper [as resolveOther] (http://localhost:4200/assets/vendor.js:56585:22)
at Class.resolve (http://localhost:4200/assets/vendor.js:21030:35)
at resolve (http://localhost:4200/assets/vendor.js:18426:36)
at Registry.resolve (http://localhost:4200/assets/vendor.js:17885:21)
ember.debug.js:18015 TypeError: (0 , _emberMacroHelpersCollapseKeys.collapseKeysWithMap) is not a function
at Object.<anonymous> (create-class-computed.js:60)
at Module.callback (datum-stats.js:7)
at Module.exports (loader.js:114)
at requireModule (loader.js:29)
at Class._extractDefaultExport (resolver.js:382)
at Class.resolveOther (resolver.js:79)
at Class.superWrapper [as resolveOther] (ember.debug.js:40879)
at Class.resolve (ember.debug.js:5324)
at resolve (ember.debug.js:2720)
at Registry.resolve (ember.debug.js:2179)
However what seems to be the pure Ember/JS equivalent works fine:
{
...
_durations: Ember.computed.collect('downloadTime', 'processTime', 'uploadTime'),
totalTime: Ember.computed('_durations.[]', function() {
let durationsMS = this.get('_durations').mapBy('asMilliseconds');
let totalTimeMS = durationsMS.reduce((a, b) => a+b, 0);
return Duration.create({value: totalTimeMS});
}),
...
}
The text was updated successfully, but these errors were encountered:
I have three props (
downloadTime
,processTime
,uploadTime
) each of which have anasMilliseconds
prop. I want to sum those.doing
fails:
However what seems to be the pure Ember/JS equivalent works fine:
The text was updated successfully, but these errors were encountered: