Skip to content

Commit

Permalink
fixup: profile_api (ComPlat#1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTrem authored May 24, 2024
1 parent 4b2028c commit 27959e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/chemotion/profile_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ProfileAPI < Grape::API
data[:layout] = sorted_layout
end

data.each_keys do |dt|
data.each_key do |dt|
sorted_layout = {}
next if dt[0..6] != 'layout_'

Expand All @@ -75,7 +75,7 @@ class ProfileAPI < Grape::API

desc 'update user profile'
params do
optional :data, type: Hash do
optional :data, type: Hash, default: {} do
optional :layout, type: Hash, profile_layout_hash: true
optional :layout_detail_research_plan, type: Hash, profile_layout_hash: true
optional :layout_detail_reaction, type: Hash, profile_layout_hash: true
Expand Down

0 comments on commit 27959e1

Please sign in to comment.