Commit b5f2adf1 authored by Phil Hughes's avatar Phil Hughes

fixed eslint

parent e5d42a0f
......@@ -56,8 +56,6 @@ export const getBranchData = (
resolve(data);
})
.catch(e => {
let flashMessage = __('Error loading branch data. Please try again.');
if (e.response.status === 404) {
dispatch('showBranchNotFoundError', branchId);
} else {
......
......@@ -62,7 +62,7 @@ export const getLastCommitData = ({ state, commit, dispatch }, tree = state) =>
.catch(() => flash('Error fetching log data.', 'alert', document, null, false, true));
};
export const getFiles = ({ state, commit }, { projectId, branchId } = {}) =>
export const getFiles = ({ state, commit, dispatch }, { projectId, branchId } = {}) =>
new Promise((resolve, reject) => {
if (!state.trees[`${projectId}/${branchId}`]) {
const selectedProject = state.projects[projectId];
......
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