Commit 1cef19ba authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '31734-update-icon-utils-catch-to-fail' into 'master'

Update catch in icon_utils to reject

See merge request gitlab-org/gitlab!27414
parents 345d6d25 4e785600
......@@ -9,8 +9,10 @@ const getSvgDom = memoize(() =>
axios
.get(gon.sprite_icons)
.then(({ data: svgs }) => new DOMParser().parseFromString(svgs, 'text/xml'))
.catch(() => {
.catch(e => {
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