Skip to content

Commit f7d5a24

Browse files
reeganviljoenekampp
andcommitted
Apply suggestions from code review
Co-authored-by: Emil Kampp <[email protected]>
1 parent 7661cf5 commit f7d5a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/view_component/cacheable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module ViewComponent::Cacheable
1212
def view_cache_dependencies
1313
return unless __vc_cache_dependencies.present? && __vc_cache_dependencies.any?
1414

15-
__vc_cache_dependencies.map { |dep| send(dep) }.compact
15+
__vc_cache_dependencies.filter_map { |dep| send(dep) }
1616
end
1717

1818
# For handeling the output_preamble and output_postamble

0 commit comments

Comments
 (0)