Skip to content

Commit

Permalink
Restores icons in language editor
Browse files Browse the repository at this point in the history
Closes #3754

There was a breaking change with I believe raw-loader or file-loader
or svg-loader or some such, we already had 2 other similar PRs for
this same issue in other areas.

After that dependency update, I think in 9.5.0,
we now need to add `.default` at the end of svg imports.

This fixes the same issue in the language resources editor.

I did a search to find if we missed this in other spots and did not find
any other instance.
  • Loading branch information
valadas authored and bdukes committed May 11, 2020
1 parent a8005cd commit ab531c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FullEditor extends Component {
data-role={button}
href='#'
onClick={this.execCommand.bind(this, button)}
dangerouslySetInnerHTML={{ __html: require("./icons/" + button + ".svg") }}
dangerouslySetInnerHTML={{ __html: require("./icons/" + button + ".svg").default }}
key={i}>
</a>
);
Expand Down

0 comments on commit ab531c0

Please sign in to comment.