Fix cmdk syntax error

This commit is contained in:
Sam Becker 2024-12-22 12:52:14 -05:00
parent 93cf0d1f23
commit 6226500cd6

View File

@ -442,7 +442,7 @@ export default function CommandKClient({
if (path) {
if (path !== pathname) {
setKeyPending(key);
startTransition(async () => {
startTransition(() => {
shouldCloseAfterPending.current = true;
router.push(path, { scroll: true });
});