Integrations2 filtering small fix (#2148)

Integrations2 filtering small fix
This commit is contained in:
Yulia Shanyrova 2023-06-12 09:48:36 +02:00 committed by GitHub
parent d3247447ef
commit 1c07bec8fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,9 +473,12 @@ class Integrations extends React.Component<IntegrationsProps, IntegrationsState>
applyFilters = () => {
const { store } = this.props;
const { alertReceiveChannelStore } = store;
const { integrationsFilters, page } = this.state;
const { integrationsFilters } = this.state;
return alertReceiveChannelStore.updatePaginatedItems(integrationsFilters, page);
return alertReceiveChannelStore.updatePaginatedItems(integrationsFilters).then(() => {
this.setState({ page: 1 });
LocationHelper.update({ p: 1 }, 'partial');
});
};
debouncedUpdateIntegrations = debounce(this.applyFilters, FILTERS_DEBOUNCE_MS);