Skip to content

Commit 76ee878

Browse files
committed
fix nits
1 parent 0cdddc2 commit 76ee878

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

emain/emain-window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ ipcMain.on("set-waveai-open", (event, isOpen: boolean) => {
728728
}
729729
});
730730

731-
ipcMain.handle("close-tab", async (event, workspaceId, tabId, confirmClose) => {
731+
ipcMain.handle("close-tab", async (event, workspaceId: string, tabId: string, confirmClose: boolean) => {
732732
const ww = getWaveWindowByWorkspaceId(workspaceId);
733733
if (ww == null) {
734734
console.log(`close-tab: no window found for workspace ws=${workspaceId} tab=${tabId}`);

frontend/app/tab/tabbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ const TabBar = memo(({ workspace }: TabBarProps) => {
597597
.closeTab(ws.oid, tabId, confirmClose)
598598
.then((didClose) => {
599599
if (didClose) {
600-
tabsWrapperRef.current.style.setProperty("--tabs-wrapper-transition", "width 0.3s ease");
600+
tabsWrapperRef.current?.style.setProperty("--tabs-wrapper-transition", "width 0.3s ease");
601601
deleteLayoutModelForTab(tabId);
602602
}
603603
})

0 commit comments

Comments
 (0)