Commit 64d0aa9a authored by Donald Cook's avatar Donald Cook

Used parent fullPath instead of group fullPath for roadmap children

parent d59c77bb
......@@ -63,13 +63,13 @@ const fetchGroupEpics = (
};
export const fetchChildrenEpics = (state, { parentItem }) => {
const { iid } = parentItem;
const { fullPath, filterParams, epicsState } = state;
const { iid, group } = parentItem;
const { filterParams, epicsState } = state;
return epicUtils.gqClient
.query({
query: epicChildEpics,
variables: { iid, fullPath, state: epicsState, ...filterParams },
variables: { iid, fullPath: group?.fullPath, state: epicsState, ...filterParams },
})
.then(({ data }) => {
const edges = data?.group?.epic?.children?.edges || [];
......
......@@ -129,6 +129,9 @@ export const mockRawEpic = {
openedEpics: 3,
closedEpics: 2,
},
group: {
fullPath: '/groups/gitlab-org/marketing/',
},
};
export const mockFormattedChildEpic1 = {
......@@ -203,6 +206,9 @@ export const mockFormattedEpic = {
closedEpics: 2,
},
isChildEpic: false,
group: {
fullPath: '/groups/gitlab-org/marketing/',
},
};
export const rawEpics = [
......
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