Fixes an error where preventDefault would be called on an event object without that function

This commit is contained in:
Quincy Morgan
2018-11-04 12:40:59 -08:00
parent 94c45c5c75
commit 3ff1139364
+1 -1
View File
@@ -197,7 +197,7 @@ export function uiSidebar(context) {
sidebar.toggleCollapse = function(shouldCollapse) {
if (d3_event) {
if (d3_event && typeof d3_event.preventDefault == 'function') {
d3_event.preventDefault();
}