ContactEdit: remove unset properties.

master
Tom Hacohen 2017-12-13 15:23:37 +00:00
parent c51804d7fe
commit f12bc374f4
1 changed files with 4 additions and 1 deletions

View File

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