Skip to content

Commit

Permalink
Update client.js
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Feb 22, 2024
1 parent fa16b33 commit 7597e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/runtime/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ async function _invalidate() {
load_cache = null;

const nav_token = (token = {});
const navigation_result = intent && (await load_route(intent));
if (!navigation_result || nav_token !== token) return;
if (!intent || nav_token !== token) return;
const navigation_result = await load_route(intent);

if (navigation_result.type === 'redirect') {
return _goto(new URL(navigation_result.location, current.url).href, {}, 1, nav_token);
Expand Down

0 comments on commit 7597e29

Please sign in to comment.