Skip to content

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Aug 29, 2024
1 parent d881099 commit 8a3c641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ontology-build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
}.group_by{ |r| r["#{theme}_class"] }.collect{ |classs, sc|
sc0 = sc[0]
sc = sc.collect{ |rr|
rr['attributes'].any?{ |a| a == '' } and raise "Error: invalid attribute: #{rr['attributes'].inspect}"
value = rr['name_over_value'] || rr['value']
[value, {
label: { en: value, fr: rr['name:fr'] },
Expand Down

0 comments on commit 8a3c641

Please sign in to comment.