debian-mirror-gitlab/app/assets/javascripts/work_items/utils.js
2023-01-13 15:02:22 +05:30

6 lines
254 B
JavaScript

import workItemQuery from './graphql/work_item.query.graphql';
import workItemByIidQuery from './graphql/work_item_by_iid.query.graphql';
export function getWorkItemQuery(isFetchedByIid) {
return isFetchedByIid ? workItemByIidQuery : workItemQuery;
}