From 2a6623f7b04c443f9ec37ff8698b3522183f84f6 Mon Sep 17 00:00:00 2001 From: leejinho Date: Mon, 9 Dec 2019 09:01:12 +0900 Subject: [PATCH] =?UTF-8?q?#=20=EC=9D=B4=EC=8A=88=EC=B2=98=EB=A6=AC=20[10?= =?UTF-8?q?=20=EC=A6=90=EA=B2=A8=EC=B0=BE=EA=B8=B0=20=ED=95=B4=EC=A0=9C?= =?UTF-8?q?=ED=95=98=EC=98=80=EC=A7=80=EB=A7=8C=20=EC=A6=90=EA=B2=A8?= =?UTF-8?q?=EC=B0=BE=EA=B8=B0=20=EA=B7=B8=EB=A3=B9=EC=97=90=20=EC=9E=88?= =?UTF-8?q?=EC=9D=8C]=20::=20=EC=A6=90=EA=B2=A8=EC=B0=BE=EA=B8=B0=20?= =?UTF-8?q?=EC=9D=B8=EC=9B=90=EC=9D=B4=20=EC=97=86=EC=9D=84=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=EB=B9=84=EC=9B=8C=EC=A3=BC=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/expansion-panel.component.ts | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.ts b/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.ts index 471f50fb..c0e496dc 100644 --- a/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.ts +++ b/projects/ucap-webmessenger-ui-group/src/lib/components/expansion-panel.component.ts @@ -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(); }