Javascript React How Do I Fix Getting Undefined When Passing Api

Javascript React How Do I Fix Getting Undefined When Passing Api