File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ export class AdminIncomingMessageList extends Component {
2828 props . location . query ,
2929 props . organization . organization . tags
3030 ) ;
31+ // Make sure campaignIds is an array of numbers
32+ filters . campaignsFilter = {
33+ campaignIds : filters . campaignsFilter . campaignIds ?. map ( id => Number ( id ) )
34+ } ;
35+
3136 this . state = {
3237 page : 0 ,
3338 pageSize : 10 ,
@@ -207,10 +212,17 @@ export class AdminIncomingMessageList extends Component {
207212 } ;
208213
209214 handleReassignRequested = async newTexterUserId => {
215+ const updatedCampaignIdsContactIds = this . state . campaignIdsContactIds . map (
216+ campaign => {
217+ campaign . campaignContactId = Number ( campaign . campaignContactId ) ;
218+ campaign . messageIds = campaign . messageIds . map ( id => Number ( id ) ) ;
219+ return campaign ;
220+ }
221+ ) ;
210222 await this . props . mutations . reassignCampaignContacts (
211223 this . props . params . organizationId ,
212- this . state . campaignIdsContactIds ,
213- newTexterUserId
224+ updatedCampaignIdsContactIds ,
225+ newTexterUserId . toString ( )
214226 ) ;
215227 this . setState ( {
216228 utc : Date . now ( ) . toString ( ) ,
You can’t perform that action at this time.
0 commit comments