Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/components/AutoCompleteDepartment.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const AutoCompleteDepartment = React.memo((props) => {

const { label } = props;

const options = useMemo(() => (data && [{ value: 'All', label: label && t('All') }, ...data.departments.map((department) => ({ value: department._id, label: department.name }))]) || [{ value: 'All', label: label || t('All') }], [data, label, t]);
const options = useMemo(() => (data && [{ value: 'all', label: label && t('All') }, ...data.departments.map((department) => ({ value: department._id, label: department.name }))]) || [{ value: 'all', label: label || t('All') }], [data, label, t]);

return <AutoComplete
{...props}
Expand Down
5 changes: 3 additions & 2 deletions client/views/omnichannel/currentChats/CurrentChatsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ const useQuery = ({ guest, servedBy, department, status, from, to, tags, customF
...itemsPerPage && { count: itemsPerPage },
...current && { offset: current },
};

if (from && to) {
query.createdAt = JSON.stringify({ start: from, end: to });
query.createdAt = JSON.stringify({
Comment thread
rafaelblink marked this conversation as resolved.
start: moment(from).set({ hour: '00', minutes: '00', seconds: '00' }).format(),
end: moment(to).set({ hour: '23', minutes: '59', seconds: '59' }).format() });
}
if (status !== 'all') {
query.open = status === 'opened';
Expand Down