Pull request: 4659 fix url value in filter table actions

Updates #4659

Squashed commit of the following:

commit e1bcda9566bd9f1cca965f4308c337a9adf2ce04
Author: Ildar Kamalov <ik@adguard.com>
Date:   Tue Jun 14 17:40:09 2022 +0300

    client: fix url value in filter table actions
This commit is contained in:
Ildar Kamalov 2022-06-14 18:55:08 +03:00
parent 5956b97e7f
commit 0edf71a4af
1 changed files with 4 additions and 3 deletions

View File

@ -84,7 +84,8 @@ class Table extends Component {
sortable: false,
resizable: false,
Cell: (row) => {
const { value } = row;
const { original } = row;
const { url } = original;
const { t, toggleFilteringModal, handleDelete } = this.props;
return (
@ -95,7 +96,7 @@ class Table extends Component {
title={t('edit_table_action')}
onClick={() => toggleFilteringModal({
type: MODAL_TYPE.EDIT_FILTERS,
url: value,
url,
})
}
>
@ -106,7 +107,7 @@ class Table extends Component {
<button
type="button"
className="btn btn-icon btn-outline-secondary btn-sm"
onClick={() => handleDelete(value)}
onClick={() => handleDelete(url)}
title={t('delete_table_action')}
>
<svg className="icons">