File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 import { getAgentOptions } from ' $lib/services/agent-service' ;
2424 import { utcToLocal } from ' $lib/helpers/datetime' ;
2525 import { ConversationChannel , TimeRange } from ' $lib/helpers/enums' ;
26- import { CUSTOM_DATE_RANGE } from ' $lib/helpers/constants' ;
2726 import {
2827 getConversations ,
2928 deleteConversation ,
510509 bind:startDate={searchOption.startDate}
511510 bind:endDate={searchOption.endDate}
512511 on:change={(e) => {
512+ // Only update searchOption, don't trigger query immediately
513513 searchOption.timeRange = e.detail.timeRange;
514514 searchOption.startDate = e.detail.startDate;
515515 searchOption.endDate = e.detail.endDate;
516- refreshFilter();
517- initFilterPager();
518- getPagedConversations();
519516 }}
520517 />
521518 </Col>
Original file line number Diff line number Diff line change 374374 bind: startDate= {searchOption .startDate }
375375 bind: endDate= {searchOption .endDate }
376376 on: change= {(e ) => {
377+ // Only update searchOption, don't trigger query immediately
377378 searchOption .timeRange = e .detail .timeRange ;
378379 searchOption .startDate = e .detail .startDate ;
379380 searchOption .endDate = e .detail .endDate ;
380- search ();
381381 }}
382382 / >
383383 < / Col>
You can’t perform that action at this time.
0 commit comments