fix fetchprojectsNonWatcher function in store/projectActions

parent ce1a9787
...@@ -203,7 +203,7 @@ const fetchProjectsNonWatcherSuccess = (projects) => { ...@@ -203,7 +203,7 @@ const fetchProjectsNonWatcherSuccess = (projects) => {
const response = await axios.get(`/projects/task_create/${userId}`); const response = await axios.get(`/projects/task_create/${userId}`);
dispatch(fetchProjectsNonWatcherSuccess(response.data.projects)) dispatch(fetchProjectsNonWatcherSuccess(response.data.projects))
} catch (error) { } catch (error) {
dispatch(fetchProjectsNonWatcherFailure(error.response.data)); dispatch(fetchProjectsNonWatcherFailure(e));
} }
} }
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment