Skip to content

Commit

Permalink
UICHKIN-421: Add support for Barcode tag with sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy-Litvinenko committed Mar 27, 2024
1 parent 4003c1c commit dfc818d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ComponentToPrint/ComponentToPrint.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ComponentToPrint extends React.Component {
const {
dataSource,
} = this.props;
const componentStr = sanitize(this.template(dataSource));
const componentStr = sanitize(this.template(dataSource), { ADD_TAGS: ['Barcode'] });
const Component = this.parser.parseWithInstructions(componentStr, () => true, this.rules) || null;

return (
Expand Down

0 comments on commit dfc818d

Please sign in to comment.