[Frontend] Refactor store/api.js

To remove the blocking of linter when operating CI/CD

Edited by Ranindya Paramitha