diff --git a/modules/ui/sections/background_list.js b/modules/ui/sections/background_list.js index 351324e1d..ba25f15ba 100644 --- a/modules/ui/sections/background_list.js +++ b/modules/ui/sections/background_list.js @@ -266,7 +266,7 @@ export function uiSectionBackgroundList(context) { function editCustom(d3_event) { - d3_event.preventDefault(); + if (d3_event !== undefined) d3_event.preventDefault(); context.container() .call(_settingsCustomBackground); }