Commit aee4555d authored by syasonik's avatar syasonik

Use consistent check for if chart is embedded

parent 8563dc1c
...@@ -7,7 +7,7 @@ module Metrics ...@@ -7,7 +7,7 @@ module Metrics
def valid_params?(params) def valid_params?(params)
[ [
params[:cluster], params[:cluster],
params[:embedded] == 'true', embedded?(params[:embedded]),
params[:group].present?, params[:group].present?,
params[:title].present?, params[:title].present?,
params[:y_label].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