Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const chips = group.split(',').map((o) => {
const el = decodeUriComponent(o).split(':');
return {
parent: el[0],
child: el.splice(1).join(':'),
uuid: uuidv4(),
isLogic: false,
};
});
componentDidMount() {
const { fetchGetSupportGroupsIfNeeded, location } = this.props;
fetchGetSupportGroupsIfNeeded();
const { report } = queryString.parse(location.search);
if (report) {
this.setState({
...this.state,
textArea: decodeUriComponent(report)
});
}
}
componentWillUpdate(nextProps) {
_loadToolForm: function(params) {
//TODO: load tool form code async
if (params.tool_id) {
params.id = decodeUriComponent(params.tool_id);
}
if (params.version) {
params.version = decodeUriComponent(params.version);
}
this.page.display(new ToolForm.View(params));
},
_loadToolForm: function(params) {
//TODO: load tool form code async
if (params.tool_id) {
params.id = decodeUriComponent(params.tool_id);
}
if (params.version) {
params.version = decodeUriComponent(params.version);
}
this.page.display(new ToolForm.View(params));
},