mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-15 18:08:30 -07:00
cherry-pick: 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:
parent
cb27ecd6c0
commit
0e8445b38f
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user