File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,11 @@ def params_updated
37
37
new_params . merge! ( "owners" : chart . owner_ids ) # expects an array of user ids
38
38
39
39
new_params . merge! ( "params" : updated_chart_params . to_json ) # updated to point to the new params
40
- new_params . merge! ( "query_context" : updated_chart_query_context . to_json ) # update to point to the new query context
41
- new_params . merge! ( "query_context_generation" : true ) # new param set to true to regenerate the query context
40
+ query_context = updated_chart_query_context
41
+ if query_context
42
+ new_params . merge! ( "query_context" : query_context . to_json ) # update to point to the new query context
43
+ new_params . merge! ( "query_context_generation" : true ) # new param set to true to regenerate the query context
44
+ end
42
45
43
46
new_params
44
47
end
You can’t perform that action at this time.
0 commit comments