Skip to content

Commit c75cf2d

Browse files
committed
Oops, null reference exception
1 parent a4d8f2a commit c75cf2d

File tree

1 file changed

+6
-2
lines changed
  • backend/files/system/openai/front.files/chat

1 file changed

+6
-2
lines changed

backend/files/system/openai/front.files/chat/modern.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@
314314

315315
// Removing text of upload file button.
316316
const lbl = document.getElementById('ainiro_filename_label');
317-
lbl.innerHTML = '';
317+
if (lbl) {
318+
lbl.innerHTML = '';
319+
}
318320
});
319321
attRem.innerHTML = '<i class="ainiro-icofont-duotone ainiro-icofont-purge ainiro-icofont-lg"></i>';
320322
chatForm.appendChild(attRem);
@@ -1188,7 +1190,9 @@
11881190

11891191
// Removing text of upload file button.
11901192
const lbl = document.getElementById('ainiro_filename_label');
1191-
lbl.innerHTML = '';
1193+
if (lbl) {
1194+
lbl.innerHTML = '';
1195+
}
11921196

11931197
// Adding query to surface.
11941198
this.addMessage(txtEl.value, 'ainiro_human');

0 commit comments

Comments
 (0)