ContactEdit: remove unset properties.
parent
c51804d7fe
commit
f12bc374f4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue