I'm pretty sure she was cast in that role awhile ago. It shouldn't interfere with her appearing in Black Panther unless the studios are preventing actors from appearing in the rival company's films. I'm not sure on the legality of that though. Wonder Woman wrapped filming and unless there are reshoots involving Ms. Kasumba that are scheduled for 2017, it shouldn't affect her returning to BP.