front: Fixed a lint error regarding API.