We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f76c7 commit 5765141Copy full SHA for 5765141
src/block/map/deprecated.js
@@ -14,7 +14,14 @@ import { addFilter } from '@wordpress/hooks'
14
15
const getIconOptions_3_13_0 = attributes => {
16
const newAttributes = { ...attributes }
17
+ if ( ! attributes.icon ) {
18
+ return null
19
+ }
20
const svgEl = createElementFromHTMLString( attributes.icon )
21
+
22
+ if ( ! svgEl || ! svgEl.firstElementChild ) {
23
24
25
svgEl.firstElementChild.setAttribute( 'fill', 'currentColor' )
26
newAttributes.icon = svgEl.outerHTML
27
return getIconOptions( newAttributes )
0 commit comments