mintsweet commented on code in PR #3750:
URL:
https://github.com/apache/incubator-devlake/pull/3750#discussion_r1025102264
##########
config-ui/src/components/miller-columns/hooks/use-miller-columns.ts:
##########
@@ -62,14 +64,14 @@ export const useMillerColumns = ({
const collectAddParentIds = (item: ItemType) => {
let result: Array<ItemType['id']> = []
- const parentItem = itemMap.getItemParent(item.id)
+ const parentItem = itemMap[item.parentId ?? '']
if (parentItem) {
- const childSelectedIds = parentItem.items
+ const childSelectedIds = (parentItem.items ?? [])
Review Comment:
You're right~
--
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]