diff --git a/app/models/metadata_array.rb b/app/models/metadata_array.rb index 0527ccb8..368aa546 100644 --- a/app/models/metadata_array.rb +++ b/app/models/metadata_array.rb @@ -28,7 +28,7 @@ class MetadataArray < MetadataTemplate # # @return [Array] def document_value - [super].flatten(1) + [super].flatten(1).compact end alias indexable_values value