Redux-sagas doesn’t recognize function from backend.js file

The issue is within the fetchAutomats method, you need to return the promise from the method:

export const fetchAutomats = () => {
  var requestString = backendServer + 'api/general/automats_for_form/'

  return axios.get(requestString, getAuthHeader())
    .then((Response) => {
      return { automats:, message: null };
    .catch((Error) => {
      return getErrorMessage(Error);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top