Skip to content

Commit 6e3f267

Browse files
committed
check if fileActions is null befor accessing the property onConfirmClose
1 parent a0d73c9 commit 6e3f267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/application-bar/RepositoryMenu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function RepositoryMenu() {
4545
actions.close();
4646
}
4747
}
48-
},[actions.close, file, fileActions.onConfirmClose]);
48+
},[actions.close, file, fileActions?.onConfirmClose]);
4949

5050
const handleOpen = useCallback(() => {
5151
setModal(true);

0 commit comments

Comments
 (0)