diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-03 00:10:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-03 00:10:16 +0300 |
commit | 515f39456fce82eb2ab811fa366167ad084a3b12 (patch) | |
tree | eae2c8deccede9fc025f7eba1b8a3a745dcb7f8f /app/assets/javascripts/ide | |
parent | d1ade10ba69cb7c232daa36625656456c32462e4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ide')
-rw-r--r-- | app/assets/javascripts/ide/services/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/services/index.js b/app/assets/javascripts/ide/services/index.js index ef4f47f226a..fd2b064160b 100644 --- a/app/assets/javascripts/ide/services/index.js +++ b/app/assets/javascripts/ide/services/index.js @@ -4,6 +4,7 @@ import dismissUserCallout from '~/graphql_shared/mutations/dismiss_user_callout. import axios from '~/lib/utils/axios_utils'; import { joinPaths, escapeFileUrl } from '~/lib/utils/url_utility'; import ciConfig from '~/pipeline_editor/graphql/queries/ci_config.graphql'; +import { getIdFromGraphQLId } from '~/graphql_shared/utils'; import { query, mutate } from './gql'; const fetchApiProjectData = (projectPath) => Api.project(projectPath).then(({ data }) => data); @@ -12,7 +13,10 @@ const fetchGqlProjectData = (projectPath) => query({ query: getIdeProject, variables: { projectPath }, - }).then(({ data }) => data.project); + }).then(({ data }) => ({ + ...data.project, + id: getIdFromGraphQLId(data.project.id), + })); export default { getFileData(endpoint) { |