Fix progress task with empty message (#224995)

This commit is contained in:
Rob Lourens 2024-08-06 16:42:19 -07:00 committed by GitHub
parent 1ef4060adf
commit 10487da7f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ class ChatAgentResponseStream {
};
Promise.all([progressReporterPromise, task?.(progressReporter)]).then(([handle, res]) => {
if (handle !== undefined && res !== undefined) {
if (handle !== undefined) {
this._proxy.$handleProgressChunk(this._request.requestId, typeConvert.ChatTaskResult.from(res), handle);
}
});