Skip to content

Commit

Permalink
fix: cache_table_rows (#2733)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored and gabrielgiroe1 committed May 8, 2024
1 parent f1698d1 commit f0ad575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/avo/index/resource_table_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class Avo::Index::ResourceTableComponent < Avo::BaseComponent
include Avo::ApplicationHelper
attr_reader :pagy, :query

def before_render = cache_table_rows

def initialize(resources: nil, resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, pagy: nil, query: nil, actions: nil)
@resources = resources
@resource = resource
Expand All @@ -13,7 +15,6 @@ def initialize(resources: nil, resource: nil, reflection: nil, parent_record: ni
@pagy = pagy
@query = query
@actions = actions
cache_table_rows
end

def encrypted_query
Expand Down

0 comments on commit f0ad575

Please sign in to comment.