I want to do some things in componentDidUpdate if a prop is undefined, however, I can\'t because I just get the error Cannot read property \'serial\' of undefined.