Commit ca6d178d authored by Jacob Schatz's avatar Jacob Schatz

Fixes scrollleft when null bug.

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