tiddly-gittly / tw-gamification

Gameify all wiki activities. Earn exp and gold from completing TODOs! Motivate you with a second life in your wiki.
https://tiddly-gittly.github.io/tw-gamification/
MIT License
3 stars 0 forks source link

t.sort is not a function #22

Closed linonetwo closed 3 months ago

linonetwo commented 3 months ago
Uncaught TypeError: t.sort is not a function
    at checkEventCacheDebounceDuplication (handle-reality-event-cache.js:1:25468)
    at checkAndPushAnItemToLogAndCacheFile (handle-reality-event-cache.js:1:26424)
    at eval (handle-reality-event-cache.js:1:27495)
    at Array.forEach (<anonymous>)
    at Widget.eval (handle-reality-event-cache.js:1:27481)
    at eventListeners.<computed> (widget.js:638:19)
    at Widget.dispatchEvent (widget.js:652:7)
    at dispatchAddRealityEventBatch (handler.js:1:23698)
function checkEventCacheDebounceDuplication(e, t, o) {
///。。。
return t.sort((e,t)=>t.event.timestamp - e.event.timestamp).findIndex(e=>{
linonetwo commented 3 months ago

点击itkg里的完成任务时发现

linonetwo commented 3 months ago

fc2f90f

linonetwo commented 3 months ago
截屏2024-05-13 19 28 46 截屏2024-05-13 19 29 28

应该是用 e.sort 才对,不过这边都是对象,没有数组