From ef68fdb2068c631eede01e66b38a8019c1549c60 Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Thu, 18 Jul 2024 22:20:48 -0500 Subject: [PATCH] use arrow functions --- .../[conversationId]/chat-box.svelte | 20 +++++++++---------- src/routes/page/conversation/+page.svelte | 10 +++++----- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index 1d31e7e9..4826398b 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -863,9 +863,9 @@ title={'Edit message'} size={'md'} isOpen={isOpenEditMsgModal} - toggleModal={toggleEditMsgModal} - confirm={confirmEditMsg} - cancel={toggleEditMsgModal} + toggleModal={() => toggleEditMsgModal()} + confirm={() => confirmEditMsg()} + cancel={() => toggleEditMsgModal()} disableConfirmBtn={!!!_.trim(editText)} >