This commit is contained in:
meganrogge
2023-07-19 15:07:29 -07:00
parent 499266dee9
commit 45908d8979
@@ -175,7 +175,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
}
const responseItems = items.filter(i => isResponseVM(i));
const targetIndex = responseItems.indexOf(item);
if (targetIndex === undefined || !responseItems) {
if (targetIndex === undefined) {
return;
}
const indexToFocus = type === 'next' ? targetIndex + 1 : targetIndex - 1;