Commit ca6d178d authored by Jacob Schatz's avatar Jacob Schatz

Fixes scrollleft when null bug.

parent 5cdadf83
......@@ -183,7 +183,9 @@ const RepoHelper = {
scrollTabsRight() {
// wait for the transition. 0.1 seconds.
setTimeout(() => {
document.getElementById('tabs').scrollLeft = 12000;
const tabs = document.getElementById('tabs');
if(!tabs) return;
tabs.scrollLeft = 12000;
}, 200)
},
......
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