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:
parent
5956b97e7f
commit
0edf71a4af
|
@ -84,7 +84,8 @@ class Table extends Component {
|
||||||
sortable: false,
|
sortable: false,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
Cell: (row) => {
|
Cell: (row) => {
|
||||||
const { value } = row;
|
const { original } = row;
|
||||||
|
const { url } = original;
|
||||||
const { t, toggleFilteringModal, handleDelete } = this.props;
|
const { t, toggleFilteringModal, handleDelete } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -95,7 +96,7 @@ class Table extends Component {
|
||||||
title={t('edit_table_action')}
|
title={t('edit_table_action')}
|
||||||
onClick={() => toggleFilteringModal({
|
onClick={() => toggleFilteringModal({
|
||||||
type: MODAL_TYPE.EDIT_FILTERS,
|
type: MODAL_TYPE.EDIT_FILTERS,
|
||||||
url: value,
|
url,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
@ -106,7 +107,7 @@ class Table extends Component {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-icon btn-outline-secondary btn-sm"
|
className="btn btn-icon btn-outline-secondary btn-sm"
|
||||||
onClick={() => handleDelete(value)}
|
onClick={() => handleDelete(url)}
|
||||||
title={t('delete_table_action')}
|
title={t('delete_table_action')}
|
||||||
>
|
>
|
||||||
<svg className="icons">
|
<svg className="icons">
|
||||||
|
|
Loading…
Reference in New Issue