#167 fix fetchProjectsNonWatcher function in store/projectActions

parent c5aa6dfb
...@@ -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(e)); dispatch(fetchProjectsNonWatcherFailure(error));
} }
} }
}; };
\ 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