Skip to content

Commit

Permalink
#2490: fixed race condition in AddSkillEvent component where watch fo…
Browse files Browse the repository at this point in the history
…r total points would reload the form and reset its initial values to empty (including current date)
  • Loading branch information
sudo-may committed Jul 10, 2024
1 parent 887c7b4 commit 97c4a92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dashboard-prime/src/components/skills/AddSkillEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@ const { values, meta, handleSubmit, isSubmitting, setFieldValue, validate, error
})
onMounted(() => {
isLoading.value = true;
loadProject()
});
watch(
() => skillsState.skill?.totalPoints,
() => {
if (!isLoading.value) {
isLoading.value = true;
(after, before) => {
if (before) {
loadProject(true)
}
}
Expand Down

0 comments on commit 97c4a92

Please sign in to comment.