fix(donations): Don't show details for anon donations
This commit is contained in:
parent
5dcb4cb508
commit
ecd418c5db
@ -112,8 +112,13 @@
|
|||||||
accessorKey: "actions",
|
accessorKey: "actions",
|
||||||
header: () => $_("action"),
|
header: () => $_("action"),
|
||||||
cell: (info) => {
|
cell: (info) => {
|
||||||
|
let detailsLink
|
||||||
|
if (info.row.original.donor != undefined){
|
||||||
|
detailsLink = `./${info.row.original.id}`
|
||||||
|
}
|
||||||
|
|
||||||
return renderComponent(DonationTableAction, {
|
return renderComponent(DonationTableAction, {
|
||||||
detailsLink: `./${info.row.original.id}`,
|
detailsLink: detailsLink,
|
||||||
deleteAction: () => {
|
deleteAction: () => {
|
||||||
active_deletes = current_donations.filter(
|
active_deletes = current_donations.filter(
|
||||||
(r) => r.id == info.row.original.id
|
(r) => r.id == info.row.original.id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user