summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue')
-rw-r--r--app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue b/app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue
index 01bff4b69d6..4d2a038458d 100644
--- a/app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue
+++ b/app/assets/javascripts/crm/organizations/components/organization_form_wrapper.vue
@@ -1,7 +1,7 @@
<script>
import { s__, __ } from '~/locale';
import { convertToGraphQLId } from '~/graphql_shared/utils';
-import { TYPE_CRM_ORGANIZATION, TYPE_GROUP } from '~/graphql_shared/constants';
+import { TYPENAME_CRM_ORGANIZATION, TYPENAME_GROUP } from '~/graphql_shared/constants';
import CrmForm from '../../components/crm_form.vue';
import getGroupOrganizationsQuery from './graphql/get_group_organizations.query.graphql';
import createOrganizationMutation from './graphql/create_organization.mutation.graphql';
@@ -23,10 +23,10 @@ export default {
organizationGraphQLId() {
if (!this.isEditMode) return null;
- return convertToGraphQLId(TYPE_CRM_ORGANIZATION, this.$route.params.id);
+ return convertToGraphQLId(TYPENAME_CRM_ORGANIZATION, this.$route.params.id);
},
groupGraphQLId() {
- return convertToGraphQLId(TYPE_GROUP, this.groupId);
+ return convertToGraphQLId(TYPENAME_GROUP, this.groupId);
},
mutation() {
if (this.isEditMode) return updateOrganizationMutation;