summaryrefslogtreecommitdiff
path: root/app/serializers/diff_file_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/diff_file_entity.rb')
-rw-r--r--app/serializers/diff_file_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/diff_file_entity.rb b/app/serializers/diff_file_entity.rb
index 6b695190569..10d020e05a5 100644
--- a/app/serializers/diff_file_entity.rb
+++ b/app/serializers/diff_file_entity.rb
@@ -159,7 +159,7 @@ class DiffFileEntity < Grape::Entity
strong_memoize(:view_type) do
types = ::Gitlab::Diff::File::VIEW_TYPES
- return options[:view] if types.include?(options[:view])
+ return options[:view_type] if types.include?(options[:view_type])
types.first
end