Commit 0f79af3d authored by Coung Ngo's avatar Coung Ngo

Fix offsetHeight console error

This commit fixes the console error `there is an error in the
console "cannot read property offsetHeight of null"`
parent e0727b2a
......@@ -123,7 +123,7 @@ export const handleLocationHash = () => {
}
if (isInIssuePage()) {
adjustment -= fixedIssuableTitle.offsetHeight;
adjustment -= fixedIssuableTitle?.offsetHeight;
}
if (isInMRPage()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment