Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public handleFormSubmit(value) {
let inputs = Object.assign({}, value);
inputs = ObjectUtils.removeNull(inputs);
inputs.uri = inputs.uri.replace(' ', '');
if (inputs.uri) {
inputs.uri = this.prefix + '-' + inputs.uri;
} else {
inputs.uri = this.prefix;
}
this.submitForm.emit(inputs);
}
public handleFormSubmit(value) {
let inputs = Object.assign({}, value);
inputs = ObjectUtils.removeNull(inputs);
inputs.uri = inputs.uri.replace(' ', '');
if (inputs.uri) {
inputs.uri = this.prefix + '-' + inputs.uri;
} else {
inputs.uri = this.prefix;
}
this.submitForm.emit(inputs);
}