Skip to content

Commit

Permalink
fix: typo in the collect_item setting type (waiting for the spec)
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Feb 6, 2024
1 parent b93b28f commit 0ee85da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/maglev/setting_types/collection_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class Maglev::SettingTypes::CollectionItem < Maglev::SettingTypes::Base
def cast_value(value)
if value.is_a?(String)
{ id: default }
{ id: value }
else
value
end
Expand Down

0 comments on commit 0ee85da

Please sign in to comment.