This commit is contained in:
Rudis Muiznieks 2023-09-25 16:29:25 -05:00
parent 8f2a5943ee
commit 1cbbc95856
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 2 additions and 2 deletions

View File

@ -43,13 +43,13 @@ function summarizeButtonClick(button) {
return request.onerror(e);
}
if (response.status !== 200) {
if (response.status !== 200 || !response.response || !response.response.output_text) {
return request.onerror(e);
}
container.classList.remove('alert-warning');
container.classList.add('alert-success');
container.innerHTML = 'placeholder';
container.innerHTML = response.response.output_text.replace('\n', '<br>');
}
request.onerror = function(e) {