Commit 4e785600 authored by Paul Slaughter's avatar Paul Slaughter

Update catch in icon_utils to reject

parent deed042b
...@@ -9,8 +9,10 @@ const getSvgDom = memoize(() => ...@@ -9,8 +9,10 @@ const getSvgDom = memoize(() =>
axios axios
.get(gon.sprite_icons) .get(gon.sprite_icons)
.then(({ data: svgs }) => new DOMParser().parseFromString(svgs, 'text/xml')) .then(({ data: svgs }) => new DOMParser().parseFromString(svgs, 'text/xml'))
.catch(() => { .catch(e => {
getSvgDom.cache.clear(); getSvgDom.cache.clear();
throw e;
}), }),
); );
......
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