Commit b0b8048
authored
fix(console): stop coercing plain SIP queue targets into skill groups (#227)
reconcileSkillGroupTargets() ran extractSkillGroupId() on every dial
target, but that helper returns its input unchanged when there is no
"skill-group:" prefix. As a result a plain SIP target such as
"sip:1000@localhost" was rewritten to "skill-group:sip:1000@localhost"
and rendered as a skill-group dropdown on every (re)load of the queue
detail form — even on deployments without the CC addon, where
/cc/skill-groups returns 404 and the target can never resolve.
Guard the reconciliation so it only applies to targets that are already
skill groups (skill-group: URI prefix or an explicit skill_group_id),
leaving SIP targets untouched.1 parent 31eb9b9 commit b0b8048
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
840 | 852 | | |
841 | 853 | | |
842 | 854 | | |
| |||
0 commit comments