Skip to content

Commit df91716

Browse files
committed
Fix duplicated push history
1 parent 24dbf2c commit df91716

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function setupNativeEvents(
6868
resolve: false,
6969
replace: a.hasAttribute("replace"),
7070
scroll: !a.hasAttribute("noscroll"),
71-
state: state && JSON.parse(state)
71+
state: state ? JSON.parse(state) : undefined
7272
});
7373
}
7474

0 commit comments

Comments
 (0)