e2corporation commented on code in PR #3287:
URL: https://github.com/apache/incubator-devlake/pull/3287#discussion_r984523079
##########
config-ui/src/hooks/useDataScopesManager.jsx:
##########
@@ -458,14 +458,15 @@ function useDataScopesManager({
(boardIds = [], boardListItems = []) => {
return boardIds.map((bId, sIdx) => {
const boardObject = boardListItems.find(
- (apiBoard) => Number(apiBoard.id) === Number(bId)
+ (apiBoard) =>
+ Number(apiBoard.id) === Number(bId) || +apiBoard.boardId === +bId
Review Comment:
It looks like we are pre-incrementing `boardId` and checking that as well?
This doesn't seem right. We should only be going after boardId
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]