BAE Systems Electronic Systems in Nashua, N.H., has been awarded a $7.8 million modification to an existing contract for electronic warfare work on the F-35.