Skip to content

Commit fa3675d

Browse files
authored
fix(plugin-cc): emit task events after task update (#4237)
1 parent a9fabdc commit fa3675d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@webex/plugin-cc/src/services/task/TaskManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ export default class TaskManager extends EventEmitter {
7373
if (payload.data?.type) {
7474
if (Object.values(CC_TASK_EVENTS).includes(payload.data.type)) {
7575
task = this.taskCollection[payload.data.interactionId];
76-
if (task) {
77-
task.emit(payload.data.type, payload.data);
78-
}
7976
}
8077
switch (payload.data.type) {
8178
case CC_EVENTS.AGENT_CONTACT:
@@ -230,6 +227,9 @@ export default class TaskManager extends EventEmitter {
230227
default:
231228
break;
232229
}
230+
if (task) {
231+
task.emit(payload.data.type, payload.data);
232+
}
233233
}
234234
});
235235
}

0 commit comments

Comments
 (0)