Skip to content

Commit

Permalink
fix: 馃悰 filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpetrov committed Jan 5, 2024
1 parent 4cd79b7 commit 2fa19d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dashboard/pages/logs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export default function LogsPage() {
const hasFilterApplied =
router.query.eval ||
router.query.agentId ||
router.query.tab !== TabEnum.all;
router.query.tab !== TabEnum.all ||
router.query.channel;

const parentRef = React.useRef();
const [state, setState] = useStateReducer({
Expand Down Expand Up @@ -1055,7 +1056,7 @@ export default function LogsPage() {
onSubmit={(message) => {
return handleOperatorChat(message);
}}
readOnly={!!state.isAiEnabled}
readOnly={!!state.isAiEnabled || !state.currentConversationId}
handleEvalAnswer={handleEvalAnswer}
handleImprove={(message, index) => {
const prev = getConversationQuery?.data?.messages?.[index - 1];
Expand Down

0 comments on commit 2fa19d1

Please sign in to comment.