Skip to content

Commit

Permalink
rturn nil if there is no translation for palette_ params (#58008)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgc1194 committed Apr 13, 2024
1 parent 87d7e89 commit cc70a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/app/models/programming_expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ def get_localized_params
i18n_params = I18n.t(
:palette_params,
scope: expression_scope,
default: palette_params,
default: nil,
smart: true
)
if i18n_params != localized_params
unless i18n_params.nil?
localized_params&.each do |param|
param_key = param['name'].to_sym
unless i18n_params[param_key].nil?
Expand Down

0 comments on commit cc70a08

Please sign in to comment.