chatwoot/app/javascript/dashboard
Sivin Varghese 73b6e2cf37
fix: Agents list in bulk action is not loading (#10347)
# Pull Request Template

## Description

This PR fixes the issue where the bulk action inbox assignable agent
list was not showing.

The issue started after merging this [feat: Vite+Vue 3
PR](https://github.com/chatwoot/chatwoot/pull/10047 ).

**Cause of issue**
Previously, `selectedInboxes` was accessed from the `ChatList.vue`
component. However, after moving the bulk action logic from mixin to the
`useBulkActions.js` composable, we were still referencing
`selectedInboxes` from the `ChatList.vue` component, even though it was
being set in the composable. This caused the API failed to load the
assignable agent list.


Ref:https://github.com/chatwoot/chatwoot/blob/develop/app/javascript/dashboard/composables/chatlist/useBulkActions.js#L18

**Solution**
Removed the usage of `selectedInboxes` from the `ChatList.vue` component
ref and using `selectedInboxes` ref directly from the
`useBulkActions.js`

Fixes
https://linear.app/chatwoot/issue/CW-3696/bulk-action-agent-list-is-not-loading

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Loom video**

https://www.loom.com/share/21e3835b3db04e34b94531ec128b586b?sid=beda60f0-1c8e-457b-b617-379d4af91873


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2024-10-24 11:51:40 +05:30
..
api feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
assets feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
components fix: Agents list in bulk action is not loading (#10347) 2024-10-24 11:51:40 +05:30
components-next feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
composables feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
constants feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
helper feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
i18n feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules fix: Modal in the context menu disappears unless hovered (#10333) 2024-10-22 13:26:56 +05:30
routes feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
store feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00