Commit 948ef322 authored by Yoshiyuki Harada's avatar Yoshiyuki Harada Committed by Phil Hughes

Revert "Apply suggestion to app/assets/javascripts/projects/commits/store/actions.js"

This reverts commit 414bb48a2788099befa602c1454b48db02631c66.
parent 2a15ea76
......@@ -3,6 +3,7 @@ import * as types from './mutation_types';
import axios from '~/lib/utils/axios_utils';
import createFlash from '~/flash';
import { __ } from '~/locale';
import { joinPaths } from '~/lib/utils/url_utility';
export default {
setInitialData({ commit }, data) {
......@@ -16,10 +17,8 @@ export default {
},
fetchAuthors({ dispatch, state }, author = null) {
const { projectId } = state;
const path = '/autocomplete/users.json';
return axios
.get(path, {
.get(joinPaths(gon.relative_url_root || '', '/autocomplete/users.json'), {
params: {
project_id: projectId,
active: true,
......
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