mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing delete listings
This commit is contained in:
@@ -65,7 +65,7 @@ const columns = [
|
|||||||
type="danger"
|
type="danger"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
try {
|
try {
|
||||||
await xhrDelete('/api/listings/', { ids: [id] });
|
await xhrDelete('/api/listings/', { ids: [row.id] });
|
||||||
Toast.success('Listing(s) successfully removed');
|
Toast.success('Listing(s) successfully removed');
|
||||||
row.reloadTable();
|
row.reloadTable();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user