diff options
Diffstat (limited to 'app/assets/javascripts/work_items/components/work_item_description.vue')
-rw-r--r-- | app/assets/javascripts/work_items/components/work_item_description.vue | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/assets/javascripts/work_items/components/work_item_description.vue b/app/assets/javascripts/work_items/components/work_item_description.vue index 942f5d4a9f0..f3c94732aae 100644 --- a/app/assets/javascripts/work_items/components/work_item_description.vue +++ b/app/assets/javascripts/work_items/components/work_item_description.vue @@ -28,19 +28,16 @@ export default { WorkItemDescriptionRendered, }, mixins: [glFeatureFlagMixin(), Tracking.mixin()], + inject: ['fullPath'], props: { workItemId: { type: String, required: true, }, - fullPath: { + workItemIid: { type: String, required: true, }, - queryVariables: { - type: Object, - required: true, - }, }, markdownDocsPath: helpPagePath('user/project/quick_actions'), quickActionsDocsPath: helpPagePath('user/project/quick_actions'), @@ -64,13 +61,16 @@ export default { workItem: { query: workItemByIidQuery, variables() { - return this.queryVariables; + return { + fullPath: this.fullPath, + iid: this.workItemIid, + }; }, update(data) { return data.workspace.workItems.nodes[0]; }, skip() { - return !this.queryVariables.iid; + return !this.workItemIid; }, result() { if (this.isEditing) { |