Commit c6b0c8c4 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'sy-consistent-embed-check' into 'master'

Use consistent check for if dashboard is embedded

See merge request gitlab-org/gitlab!27376
parents 1826fe76 aee4555d
......@@ -7,7 +7,7 @@ module Metrics
def valid_params?(params)
[
params[:cluster],
params[:embedded] == 'true',
embedded?(params[:embedded]),
params[:group].present?,
params[:title].present?,
params[:y_label].present?
......
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