fix: bug not refreshing the contacts map value on commit

pull/3052/head
Audric Ackermann 1 year ago
parent a8c674c07a
commit c476ad1704

@ -87,15 +87,15 @@ async function insertContactFromDBIntoWrapperAndRefresh(
try {
window.log.debug('inserting into contact wrapper: ', JSON.stringify(wrapperContact));
await ContactsWrapperActions.set(wrapperContact);
// returned for testing purposes only
return wrapperContact;
} catch (e) {
window.log.warn(`ContactsWrapperActions.set of ${id} failed with ${e.message}`);
// we still let this go through
} finally {
await refreshMappedValue(id);
}
await refreshMappedValue(id);
return null;
// returned for testing purposes only
return wrapperContact;
}
/**

Loading…
Cancel
Save