Fix receive message

This commit is contained in:
Ayoub Ait Lachgar 2024-02-20 12:32:47 +01:00
parent 8e6ac01e26
commit 4e213bb762
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,8 @@ import {
findCorrelationPropertiesByMessage,
isMessageEvent,
isMessageElement,
createNewCorrelationProperty
createNewCorrelationProperty,
getMessageRefElement
} from '../MessageHelpers';
import { removeFirstInstanceOfItemFromArrayInPlace } from '../../helpers';
@ -61,8 +62,7 @@ export function CorrelationPropertiesList(props) {
event.stopPropagation();
const { businessObject } = element;
const messageRef = (businessObject) ? businessObject.messageRef : null;
const messageRef = getMessageRefElement(element);
if(!messageRef){
alert('Please select a message');