iachat/app/javascript/dashboard
Daniel Jimenez 918f8e6f8e
fix: AgentTable report showing test value for zero conversations (#10641)
# Pull Request Template

## Description

Changed to make use of nullish coalescing operator to only short circuit
in cases when the `metric` variable is not zero. This change also begs
the question as to whether the `stringToFloat` test function should
exist - to me it seems interesting to have test code embedded into
production code for the frontend?
Fixes #10640

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Tested by opening the report overview page and reviewing that this shows
`---` for agents with no conversations assigned to them.


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [x] 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
- [ ] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
2025-01-06 13:51:27 +05:30
..
api feat(ee): Add copilot integration (v1) to the conversation sidebar (#10566) 2024-12-10 15:36:48 -08:00
assets feat: integrate new bubbles (#10550) 2024-12-19 18:41:55 +05:30
components feat: integrate new bubbles (#10550) 2024-12-19 18:41:55 +05:30
components-next fix: bubble UI issues (#10608) 2024-12-21 13:36:46 +05:30
composables feat: integrate new bubbles (#10550) 2024-12-19 18:41:55 +05:30
constants feat: integrate new bubbles (#10550) 2024-12-19 18:41:55 +05:30
helper chore: Remove unused files in contact (#10570) 2024-12-11 19:29:24 -08:00
i18n feat: integrate new bubbles (#10550) 2024-12-19 18:41:55 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: integrate new bubbles (#10550) 2024-12-19 18:41:55 +05:30
routes fix: AgentTable report showing test value for zero conversations (#10641) 2025-01-06 13:51:27 +05:30
store feat: Throttle meta request for large chat size (#10518) 2024-12-05 22:35:30 -08: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