ContactEdit: remove unset properties.

master
Tom Hacohen 7 years ago
parent c51804d7fe
commit f12bc374f4

@ -283,8 +283,11 @@ class ContactEdit extends React.Component {
))); )));
function setProperty(name: string, value: string) { function setProperty(name: string, value: string) {
comp.removeAllProperties(name);
if (value !== '') {
comp.updatePropertyWithValue(name, value); comp.updatePropertyWithValue(name, value);
} }
}
setProperty('org', this.state.org); setProperty('org', this.state.org);
setProperty('title', this.state.title); setProperty('title', this.state.title);

Loading…
Cancel
Save