Skip to content

Commit

Permalink
Merge pull request #446 from yeatmanlab/fix/taskPicker-button
Browse files Browse the repository at this point in the history
Fix TaskPicker not always emitting event
  • Loading branch information
richford authored Mar 26, 2024
2 parents ec9a490 + 8549584 commit 3e053e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/CreateAdministration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<span class="mt-2 font-bold">{{ nonUniqueTasks.join(', ') }}</span>
</span>
<span v-else>
<span>Task selections must not be empty.</span>
<span>No variants selected. You must select at least one variant to be assigned.</span>
</span>
</span>
</template>
Expand Down
10 changes: 7 additions & 3 deletions src/components/TaskPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,13 @@ const handleCardMove = (card) => {
} else return true;
};
watch(selectedVariants, (variants) => {
emit('variants-changed', variants);
});
watch(
selectedVariants,
(variants) => {
emit('variants-changed', variants);
},
{ deep: true },
);
// Card event handlers
const removeCard = (variant) => {
Expand Down

0 comments on commit 3e053e3

Please sign in to comment.