Skip to content

Commit

Permalink
Check nullability (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral authored Aug 29, 2024
1 parent 746230c commit 8e9d98c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions speckle_connector_3/src/settings/card_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def self.get_setting_from_ui_data(data)
end

def self.get_filter_from_document(data)
return nil if data.nil?
data.values.collect do |d|
CardSetting.new(id: d['id'], title: d['title'], type: d['type'],
value: d['value'], enum: d['enum'] ? d['enum'].values : nil) # UI give array as object damn!
Expand Down

0 comments on commit 8e9d98c

Please sign in to comment.