diff --git a/src/ContactEdit.tsx b/src/ContactEdit.tsx index 0f7ee89..3f14862 100644 --- a/src/ContactEdit.tsx +++ b/src/ContactEdit.tsx @@ -233,6 +233,10 @@ class ContactEdit extends React.Component { function setProperties(name: string, source: ValueType[]) { comp.removeAllProperties(name); source.forEach((x) => { + if (x.value === '') { + return; + } + let prop = new ICAL.Property(name, comp); prop.setParameter('type', x.type); prop.setValue(x.value);