# 이슈처리

[10 즐겨찾기 해제하였지만 즐겨찾기 그룹에 있음] :: 즐겨찾기 인원이 없을 경우 비워주도록 수정.
This commit is contained in:
leejinho 2019-12-09 09:01:12 +09:00
parent cc7908875a
commit 2a6623f7b0

View File

@ -79,21 +79,22 @@ export class ExpansionPanelComponent
@Input()
set favoritBuddyList(userInfoList: UserInfo[]) {
if (!userInfoList || 0 === userInfoList.length) {
return;
}
const groupNode: GroupNode = {
nodeType: NodeType.Favorit,
children: []
};
userInfoList.forEach(userInfo => {
groupNode.children.push({
this.favoritNodes = [];
} else {
const groupNode: GroupNode = {
nodeType: NodeType.Favorit,
userInfo
});
});
children: []
};
this.favoritNodes = [groupNode];
userInfoList.forEach(userInfo => {
groupNode.children.push({
nodeType: NodeType.Favorit,
userInfo
});
});
this.favoritNodes = [groupNode];
}
this.refreshRootNodeList();
}