feat: add workflow actions, admin enhancements, and comprehensive test coverage
This commit is contained in:
@@ -96,6 +96,10 @@
|
||||
const res = await fetch("/api/cw/members");
|
||||
const json = await res.json();
|
||||
members = json.data ?? [];
|
||||
// Auto-select first member as primary sales rep if not already set
|
||||
if (!primarySalesRepId && members.length > 0) {
|
||||
primarySalesRepId = String(members[0].id);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("Failed to load members:", err);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user