Skip to content

Commit

Permalink
Remove unnecessary form_id methods in components
Browse files Browse the repository at this point in the history
These two components didn't require form_ids as they had no forms.
Purely informational display pages, only `get` requests, no forms in
sight.
  • Loading branch information
MadelineCollier committed Oct 16, 2024
1 parent 214ce64 commit c26cb64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions admin/app/components/solidus_admin/users/items/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ def initialize(user:, items:)
@items = items
end

def form_id
@form_id ||= "#{stimulus_id}--form-#{@user.id}"
end

def tabs
[
{
Expand Down
4 changes: 0 additions & 4 deletions admin/app/components/solidus_admin/users/orders/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ def initialize(user:, orders:)
@orders = orders
end

def form_id
@form_id ||= "#{stimulus_id}--form-#{@user.id}"
end

def tabs
[
{
Expand Down

0 comments on commit c26cb64

Please sign in to comment.