Commit 35092f2b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '195158-epic-tree-create-new-epic-creates-epic-that-it-thinks-is-an-issue' into 'master'

Fix create epic in tree after selecting Add issue

See merge request gitlab-org/gitlab!28300
parents 7f76b7ce 2f2b42ef
import Vue from 'vue';
import * as types from './mutation_types';
import { issuableTypesMap } from 'ee/related_issues/constants';
export default {
[types.SET_INITIAL_CONFIG](
......@@ -142,6 +143,7 @@ export default {
[types.TOGGLE_CREATE_EPIC_FORM](state, { toggleState }) {
state.showCreateEpicForm = toggleState;
state.showAddItemForm = false;
state.issuableType = issuableTypesMap.EPIC;
},
[types.TOGGLE_CREATE_ISSUE_FORM](state, { toggleState }) {
......
---
title: Fix create epic in tree after selecting Add issue
merge_request: 28300
author:
type: fixed
......@@ -389,6 +389,7 @@ describe('RelatedItemsTree', () => {
expect(state.showCreateEpicForm).toBe(data.toggleState);
expect(state.showAddItemForm).toBe(false);
expect(state.issuableType).toEqual('epic');
});
});
......
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