Skip to content

Commit 071973b

Browse files
authored
Update gitapi.js
1 parent a4cc54f commit 071973b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git/gitapi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function changePushingState(to, pendingPromise) {
77

88
if (to === true) {
99

10-
pendingPromise = pendingPromise;
10+
pendingPromise = pendingPromise ?? null;
1111

1212
window.addEventListener('beforeunload', beforeUnloadListener, {capture: true});
1313

0 commit comments

Comments
 (0)