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)} >