From 1a9bfd24b173c415526530d131dc021935575f5b Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 16 Oct 2022 04:39:32 +0530 Subject: [PATCH] clear stored task ID to apply for application --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 068dd7c..a026b99 100644 --- a/index.html +++ b/index.html @@ -1292,6 +1292,7 @@ RIBC.applyForTask(projectCode, branch, task).then((result) => { notify('Applied successfully.', 'success') sessionTaskRequests.add({ projectCode, branch, task }) + floGlobals.tempUserTaskRequest = null }) } }).catch((error) => { @@ -2746,7 +2747,8 @@ btn.disabled = true RIBC.applyForTask(projectCode, branch, task).then((result) => { notify('Applied successfully.', 'success') - sessionTaskRequests.add({ projectCode, branch, task }) + sessionTaskRequests.add({ projectCode, branch, task }); + floGlobals.tempUserTaskRequests = null; }) } }).catch((error) => { @@ -3081,6 +3083,7 @@ notify(error, 'error') }).finally(() => { buttonLoader(getRef('intern_apply__button'), false) + floGlobals.tempUserTaskRequest = null }) }