Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For a strange reason, "Uncaught TypeError: _ctx.deleteJobs is not a function" #4

Open
MikePonce-UwU opened this issue Mar 25, 2022 · 1 comment

Comments

@MikePonce-UwU
Copy link

MikePonce-UwU commented Mar 25, 2022

Hi, I was trying to replicate the project to a Job Finder or Job Posting, but, for a super rare reason, the function to delete posts or jobs, call it the way you like,
Captura de pantalla 2022-03-24 181308
If someone knows about this, please, help. I almost left my head with no hair.
Regards.
The code is this:

<script> import useJobs from "../../composable/Jobs"; import { onMounted } from "vue"; export default { setup() { const { jobs, getJobs, destroyJob } = useJobs(); onMounted(getJobs); const deleteJob = async (id) => { if (!window.confirm("Are you sure to delete this Job?")) return; await destroyJob(id); await getJobs(); }; return { jobs, deleteJob, }; }, }; </script>
@maassikll
Copy link

maassikll commented May 12, 2024

You create a function named deleteJob without an s But you use function named deleteJobs so try to correct that with removing the s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants