ContactEdit: remove unset properties.

master
Tom Hacohen 7 years ago
parent c51804d7fe
commit f12bc374f4

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

Loading…
Cancel
Save