diff options
| author | dave <starpumadev@gmail.com> | 2019-03-14 07:55:39 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-14 07:55:39 -0400 |
| commit | e5e1d4c643d6b69217fb9a62b60f3f9c94ef4714 (patch) | |
| tree | f609f14274dd193a02a25f22ded27b74d45a4b85 /src/services/notification_utils | |
| parent | 93a2510ede667f61b4659596ca237d7bfc708381 (diff) | |
#436: fix notification order, follow type link issue, duplicate key
Diffstat (limited to 'src/services/notification_utils')
| -rw-r--r-- | src/services/notification_utils/notification_utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js index cd8f3f9e..8afd114e 100644 --- a/src/services/notification_utils/notification_utils.js +++ b/src/services/notification_utils/notification_utils.js @@ -10,8 +10,8 @@ export const visibleTypes = store => ([ ].filter(_ => _)) const sortById = (a, b) => { - const seqA = Number(a.action.id) - const seqB = Number(b.action.id) + const seqA = Number(a.id) + const seqB = Number(b.id) const isSeqA = !Number.isNaN(seqA) const isSeqB = !Number.isNaN(seqB) if (isSeqA && isSeqB) { @@ -21,7 +21,7 @@ const sortById = (a, b) => { } else if (!isSeqA && isSeqB) { return -1 } else { - return a.action.id > b.action.id ? -1 : 1 + return a.id > b.id ? -1 : 1 } } |
