Fix request creation from menu

This commit is contained in:
Gregory Schier
2023-10-26 10:41:14 -07:00
parent d1bc5900fb
commit d62702f7dd
2 changed files with 4 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ export const Sidebar = memo(function Sidebar({ className }: Props) {
const [selectedIndex, setSelectedIndex] = useState<number>();
// TODO: Move these listeners to a central place
useListenToTauriEvent('create_request', async () => createRequest.mutate({}));
useListenToTauriEvent('new_request', async () => createRequest.mutate({}));
const focusActiveRequest = useCallback(
(forcedIndex?: number) => {