clear stored task ID to apply for application

This commit is contained in:
sairaj mote 2022-10-16 04:39:32 +05:30
parent cf5086450f
commit 1a9bfd24b1

View File

@ -1292,6 +1292,7 @@
RIBC.applyForTask(projectCode, branch, task).then((result) => { RIBC.applyForTask(projectCode, branch, task).then((result) => {
notify('Applied successfully.', 'success') notify('Applied successfully.', 'success')
sessionTaskRequests.add({ projectCode, branch, task }) sessionTaskRequests.add({ projectCode, branch, task })
floGlobals.tempUserTaskRequest = null
}) })
} }
}).catch((error) => { }).catch((error) => {
@ -2746,7 +2747,8 @@
btn.disabled = true btn.disabled = true
RIBC.applyForTask(projectCode, branch, task).then((result) => { RIBC.applyForTask(projectCode, branch, task).then((result) => {
notify('Applied successfully.', 'success') notify('Applied successfully.', 'success')
sessionTaskRequests.add({ projectCode, branch, task }) sessionTaskRequests.add({ projectCode, branch, task });
floGlobals.tempUserTaskRequests = null;
}) })
} }
}).catch((error) => { }).catch((error) => {
@ -3081,6 +3083,7 @@
notify(error, 'error') notify(error, 'error')
}).finally(() => { }).finally(() => {
buttonLoader(getRef('intern_apply__button'), false) buttonLoader(getRef('intern_apply__button'), false)
floGlobals.tempUserTaskRequest = null
}) })
} }