From 0c8e0ed3dd8b54f63b24b56e9d60f79cbbe4e021 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 9 Jul 2021 14:50:57 +0200 Subject: [PATCH] :bug: Fix problem with invalid svg value --- frontend/src/app/util/svg.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/util/svg.cljs b/frontend/src/app/util/svg.cljs index 48e64746e..b4d3a352a 100644 --- a/frontend/src/app/util/svg.cljs +++ b/frontend/src/app/util/svg.cljs @@ -488,8 +488,9 @@ filter-values))) (defn extract-ids [val] - (->> (re-seq xml-id-regex val) - (mapv second))) + (when (some? val) + (->> (re-seq xml-id-regex val) + (mapv second)))) (defn fix-dot-number "Fixes decimal numbers starting in dot but without leading 0"