refactor: Mark fire-and-forget openNewChat calls as void

This commit is contained in:
Aleksander Grygier
2026-08-21 20:11:16 +02:00
committed by GitHub
parent 54b74f25aa
commit e4c77b8610
3 changed files with 4 additions and 4 deletions
@@ -106,7 +106,7 @@
{/each}
{#if showNewChatButton}
<ChatTabsNewChatButton onclick={() => conversationsStore.openNewChat()} />
<ChatTabsNewChatButton onclick={() => void conversationsStore.openNewChat()} />
{/if}
</ScrollCarousel>
@@ -113,7 +113,7 @@
item.action === SidebarAction.NEW_CHAT
? () => {
onNewChat?.();
conversationsStore.openNewChat();
void conversationsStore.openNewChat();
}
: item.route
? () => {
@@ -167,7 +167,7 @@
item.action === SidebarAction.NEW_CHAT
? () => {
onNewChat?.();
conversationsStore.openNewChat();
void conversationsStore.openNewChat();
}
: item.route
? () => {
@@ -37,7 +37,7 @@ export function useKeyboardShortcuts(callbacks: KeyboardShortcutsCallbacks) {
) {
event.preventDefault();
conversationsStore.openNewChat();
void conversationsStore.openNewChat();
}
if (event.shiftKey && isCmdOrCtrl && event.key === KeyboardKey.E_UPPER) {