From a77dbe9f83be03d72732fcf9c42a8fe5b40f358f Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Fri, 30 Oct 2020 08:26:14 -0300 Subject: [PATCH] fix error when custom background url is empty --- modules/ui/sections/background_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }