diff --git a/src/stores/ConversationStore.js b/src/stores/ConversationStore.js index 904be28..27b73a9 100644 --- a/src/stores/ConversationStore.js +++ b/src/stores/ConversationStore.js @@ -114,7 +114,7 @@ export const websocketSlice = (set, get) => ({ }); export const referenceMsgSlice = (set) => ({ - referenceMsg: [], + referenceMsg: {}, setReferenceMsg: (referenceMsg) => set({ referenceMsg }), }); diff --git a/src/views/Conversations/Components/InputTemplate.jsx b/src/views/Conversations/Components/InputTemplate.jsx index 232c6ba..64a6b79 100644 --- a/src/views/Conversations/Components/InputTemplate.jsx +++ b/src/views/Conversations/Components/InputTemplate.jsx @@ -143,7 +143,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage }) => { itemLayout='horizontal' dataSource={dataSource} rowKey={'name'} - pagination={dataSource.length < 6 ? false : { position: 'bottom', pageSize: 5, align: 'start', size: 'small' }} + pagination={dataSource.length < 4 ? false : { position: 'bottom', pageSize: 3, align: 'start', size: 'small' }} renderItem={(item, index) => (