fix task counter decrement

This commit is contained in:
ouoertheo
2023-07-30 09:27:31 -05:00
parent 3fc2b81433
commit 4f76a8b0ce

View File

@ -779,7 +779,7 @@ jQuery(() => {
}); });
eventSource.on(event_types.MESSAGE_RECEIVED, () => { eventSource.on(event_types.MESSAGE_RECEIVED, () => {
if (currentChatId == undefined) { if (currentChatId == undefined || currentTask == undefined) {
return return
} }
if ($("#objective-check-frequency").val() > 0) { if ($("#objective-check-frequency").val() > 0) {