소스 검색

fix(sidebar/bar): incorrect event sent to child on TabCreated

Jocelyn Boullier 4 년 전
부모
커밋
4ca1c847bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Sidebar/Components/Bar.purs

+ 1 - 1
src/Sidebar/Components/Bar.purs

@@ -151,7 +151,7 @@ component =
        let tabId = view _tabId tab
        s <- H.modify (\s -> s { tabsToGroup = M.insert tabId s.currentGroup  s.tabsToGroup })
        doOnTabGroup tabId \_ -> do
-         void $ tellChild s.currentGroup $ Tabs.TabAttached tab
+         void $ tellChild s.currentGroup $ Tabs.TabCreated tab
        pure (Just a)
 
     Tabs.TabDeleted tid a -> do