Skip to content

Commit

Permalink
fix: fix subsequent task not loading after submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrieh committed Jul 10, 2024
1 parent 42ffe98 commit 38d7d06
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pages/campaign/[id]/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,10 @@ const renderTask = async (): Promise<void> => {
const task = {
accountId: vAccount.value?.id,
campaignId: reservation.value?.campaign_id,
batchId: reservation.value?.batch_id,
batchId: reservation.value?.batch_idx,
submissionId: reservation.value?.id,
};
console.log("Reservation", reservation.value)
console.log("Task", task)
console.log("Task Data", taskData.value);
const template = new EffectTemplate(
campaign.value.info.template,
{ id: 1, annotations: [], ...taskData.value },
Expand Down Expand Up @@ -156,8 +152,9 @@ const doSubmitTask = async (data: Record<string, unknown>): Promise<void> => {
watchEffect(async () => {
if (!reservation.value || !taskData.value) return;
if (error.value) return;
isTemplateReady.value = false;
await nextTick();
renderTask();
});
Expand Down

0 comments on commit 38d7d06

Please sign in to comment.