fix_virgule_commit
This commit is contained in:
parent
e8f66ff586
commit
adc58e621c
@ -202,7 +202,7 @@ class ChatElement extends HTMLElement {
|
||||
notifElement.className = 'notification-item';
|
||||
notifElement.textContent = `${notif.text} at ${notif.time}`;
|
||||
notifElement.onclick = async () => {
|
||||
await this.loadMemberChat([notif.memberId]);
|
||||
await this.loadMemberChat(notif.memberId);
|
||||
await this.removeNotification(index);
|
||||
};
|
||||
this.notificationBoard?.appendChild(notifElement);
|
||||
@ -438,7 +438,7 @@ class ChatElement extends HTMLElement {
|
||||
const recipientAddresses = service.getAddressesForMemberId(this.selectedMember);
|
||||
for (const [processId, process] of Object.entries(processes)) {
|
||||
const description = await service.getDescription(processId, process);
|
||||
console.log('Process description:'description);
|
||||
console.log('Process description:', description);
|
||||
if (description !== "dm") {
|
||||
continue;
|
||||
}
|
||||
@ -751,7 +751,7 @@ class ChatElement extends HTMLElement {
|
||||
const service = await Services.getInstance();
|
||||
// Get the `commited_in` value of the last state and remove it from the array
|
||||
const currentCommitedIn = process.states.pop()?.commited_in;
|
||||
console.log('Current CommitedIn (roles):' currentCommitedIn);
|
||||
console.log('Current CommitedIn (roles):', currentCommitedIn);
|
||||
|
||||
if (currentCommitedIn === undefined) {
|
||||
return null; // No states available
|
||||
@ -769,11 +769,11 @@ class ChatElement extends HTMLElement {
|
||||
lastDifferentState = process.states.pop();
|
||||
}
|
||||
|
||||
if (!lastDifferentState.pcd_commitment) {
|
||||
if (!lastDifferentState || !lastDifferentState.pcd_commitment) {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log('lastDifferentState (roles):'lastDifferentState);
|
||||
console.log('lastDifferentState (roles):', lastDifferentState);
|
||||
|
||||
// Take the roles out of the state
|
||||
const roles = lastDifferentState!.pcd_commitment['roles'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user