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
Description:
When getting value from Map data structure, it can return null value(undefined in TS) for not having the key.
But I found out some functions not checking it properly.
For example, getPrevCreatedAt function in RGATreeList is implemented as below:
Description:
When getting value from Map data structure, it can return null value(undefined in TS) for not having the key.
But I found out some functions not checking it properly.
For example,
getPrevCreatedAt
function inRGATreeList
is implemented as below:It is not checking the case that
nodeMapByCreatedAt
doesn't contain the key andnode
is assigned null value.Thus, it might be better to fix it like this:
I only looked through RGATreeList, so it might be necessary to check other parts of the code as well.
Why:
The text was updated successfully, but these errors were encountered: