diff options
Diffstat (limited to 'app/graphql/mutations/concerns/mutations/work_items/widgetable.rb')
-rw-r--r-- | app/graphql/mutations/concerns/mutations/work_items/widgetable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/mutations/concerns/mutations/work_items/widgetable.rb b/app/graphql/mutations/concerns/mutations/work_items/widgetable.rb index 508e1627032..3f32cd51ae7 100644 --- a/app/graphql/mutations/concerns/mutations/work_items/widgetable.rb +++ b/app/graphql/mutations/concerns/mutations/work_items/widgetable.rb @@ -7,7 +7,7 @@ module Mutations def extract_widget_params!(work_item_type, attributes) # Get the list of widgets for the work item's type to extract only the supported attributes - widget_keys = ::WorkItems::Type.available_widgets.map(&:api_symbol) + widget_keys = ::WorkItems::WidgetDefinition.available_widgets.map(&:api_symbol) widget_params = attributes.extract!(*widget_keys) not_supported_keys = widget_params.keys - work_item_type.widgets.map(&:api_symbol) |