From bcdc2fd883dfdc30d3e763cadae8d631fa6534ee Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:26:27 +0800 Subject: [PATCH] fix: Low version browsers do not have the at function (#1870) --- ui/src/api/type/application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts index ee1f07ca9..01dc8b84e 100644 --- a/ui/src/api/type/application.ts +++ b/ui/src/api/type/application.ts @@ -138,7 +138,7 @@ export class ChatRecordManage { ) { return this.write_node_info } - const run_node = this.node_list.filter((item) => item.buffer.length > 0 || !item.is_end).at(0) + const run_node = this.node_list.filter((item) => item.buffer.length > 0 || !item.is_end)[0] if (run_node) { const index = this.node_list.indexOf(run_node)