Fix add message fire event (#1775)

* Fix add message fire event

* Remove comment code & log
This commit is contained in:
Ayoub Ait Lachgar 2024-06-20 19:43:42 +01:00 committed by GitHub
parent 79bef27b3b
commit 8472e83de5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,13 +46,10 @@ export function MessageEditor({
...currentMessagesForId.correlation_properties,
};
(formData.correlation_properties || []).forEach((formProp: any) => {
if (!(formProp.id in newCorrelationProperties)) {
newCorrelationProperties[formProp.id] = {
retrieval_expression: formProp.retrievalExpression,
};
}
newCorrelationProperties[formProp.id] = {
retrieval_expression: formProp.retrievalExpression,
};
});
Object.keys(currentMessagesForId.correlation_properties || []).forEach(
(propId: string) => {
const foundProp = (formData.correlation_properties || []).find(