remove listings from listingstable when clicked

This commit is contained in:
orangecoding
2025-10-03 13:27:44 +02:00
parent f97fb48e51
commit 3aa30bc1e2
5 changed files with 69 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ export default function Jobs() {
const onListingRemoval = async (jobId) => {
try {
await xhrDelete('/api/listings', { jobId });
await xhrDelete('/api/listings/job', { jobId });
Toast.success('Listings successfully removed');
await actions.jobs.getJobs();
} catch (error) {