Skip to content

Commit

Permalink
Updated: the check on PickListService response(#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Apr 30, 2024
1 parent 4432046 commit f69cb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/AssignPickerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default defineComponent({
try {
resp = await PicklistService.getAvailablePickers(payload);
if (resp.status === 200 && !hasError(resp) && resp.data.count > 0) {
if (resp.status === 200 && !hasError(resp) && resp.data.docs.length > 0) {
const pickers = resp.data.docs.map((picker) => ({
name: picker.firstName || picker.lastName ? `${picker.firstName} ${picker.lastName}` : picker.groupName,
id: picker.partyId
Expand Down

0 comments on commit f69cb4f

Please sign in to comment.