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)}
>
@@ -875,9 +875,9 @@
isOpen={isOpenUserAddStateModal}
bind:states={userAddStates}
requireActiveRounds
- toggleModal={toggleUserAddStateModal}
- confirm={handleConfirmUserAddStates}
- cancel={toggleUserAddStateModal}
+ toggleModal={() => toggleUserAddStateModal()}
+ confirm={() => handleConfirmUserAddStates()}
+ cancel={() => toggleUserAddStateModal()}
/>
@@ -890,7 +890,7 @@
bind:agentQueueLogs={agentQueueLogs}
agent={agent}
autoScroll={autoScrollLog}
- closeWindow={closeInstantLog}
+ closeWindow={() => closeInstantLog()}
/>
{/if}
@@ -1086,7 +1086,7 @@
confirmSelectedOption(title, payload)}
/>
{/if}
@@ -1142,8 +1142,8 @@
bind:contentLogs={contentLogs}
bind:convStateLogs={convStateLogs}
autoScroll={autoScrollLog}
- closeWindow={closePersistLog}
- cleanScreen={cleanPersistLogScreen}
+ closeWindow={() => closePersistLog()}
+ cleanScreen={() => cleanPersistLogScreen()}
/>
{/if}
diff --git a/src/routes/page/conversation/+page.svelte b/src/routes/page/conversation/+page.svelte
index 21452b1a..fb8c029e 100644
--- a/src/routes/page/conversation/+page.svelte
+++ b/src/routes/page/conversation/+page.svelte
@@ -336,9 +336,9 @@
validateKey={true}
validateValue={false}
bind:states={searchOption.states}
- toggleModal={toggleSearchStateModal}
- confirm={handleConfirmStateModal}
- cancel={toggleSearchStateModal}
+ toggleModal={() => toggleSearchStateModal()}
+ confirm={() => handleConfirmStateModal()}
+ cancel={() => toggleSearchStateModal()}
/>
@@ -410,7 +410,7 @@
{#if searchStateStrs?.length > 0}
{#each searchStateStrs as str, idx (idx)}
-
+