Fix ticket filters. (#820)

* Fix ticket filters.

* change search ticket title.

* fix search tickets utils.
This commit is contained in:
LautaroCesso 2020-06-24 19:57:58 -03:00 committed by GitHub
parent 3f68febdd7
commit 82d6f47eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class AdminPanelSearchTickets extends React.Component {
<div className="admin-panel-all-tickets__container">
<Header
className="admin-panel-all-tickets__container__header"
title={listConfig.title !== undefined ? listConfig.title : i18n('CUSTOM_LIST')}
title={listConfig.title !== undefined ? listConfig.title : i18n('SEARCH_TICKETS')}
description={i18n('SEARCH_TICKETS_DESCRIPTION')} />
<Button
className="admin-panel-all-tickets__container__show-filters-button"

View File

@ -44,8 +44,8 @@ export default {
getFiltersFromParams(search = window.location.search) {
let urlFilters = queryString.parse(search);
delete urlFilters.page;
const customTicketsList = window.customTicketList[urlFilters.custom*1];
const customTicketsListFilters = customTicketsList ? customTicketsList.filters : undefined;
const customTicketsList = urlFilters.custom && window.customTicketList && window.customTicketList[urlFilters.custom*1];
const customTicketsListFilters = customTicketsList && customTicketsList.filters;
if(customTicketsListFilters) {
const newFilters = {