From 984e9d6c667835bd7371341f7f2b0f7e376c587a Mon Sep 17 00:00:00 2001 From: inthejim Date: Thu, 5 Oct 2023 18:15:03 +0900 Subject: [PATCH] =?UTF-8?q?fix(view):=20commit=20=EC=A4=91=EB=B3=B5=20bug?= =?UTF-8?q?=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/view/src/components/Detail/Detail.hook.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/view/src/components/Detail/Detail.hook.tsx b/packages/view/src/components/Detail/Detail.hook.tsx index 054a07eb..ac2a1212 100644 --- a/packages/view/src/components/Detail/Detail.hook.tsx +++ b/packages/view/src/components/Detail/Detail.hook.tsx @@ -13,9 +13,9 @@ const useToggleHook = (init = false): UseToggleHook => { export const useCommitListHide = (commitNodeListInCluster: CommitNode[]) => { const list = getSummaryCommitList(commitNodeListInCluster).reverse(); - const strech = commitNodeListInCluster.slice(5, commitNodeListInCluster.length).reverse(); + const strech = commitNodeListInCluster.reverse(); const [toggle, handleToggle] = useToggleHook(); - const commitNodeList = toggle ? [...list, ...strech] : list; + const commitNodeList = toggle ? strech : list; return { toggle,