From 78e334d8eccb8b68540b861fef1df168e2d0d085 Mon Sep 17 00:00:00 2001 From: Madeline Collier Date: Tue, 15 Oct 2024 15:33:07 +0200 Subject: [PATCH] Remove unnecessary form_id methods in components These two components didn't require form_ids as they had no forms. Purely informational display pages, only `get` requests, no forms in sight. --- admin/app/components/solidus_admin/users/items/component.rb | 4 ---- admin/app/components/solidus_admin/users/orders/component.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/admin/app/components/solidus_admin/users/items/component.rb b/admin/app/components/solidus_admin/users/items/component.rb index 5a901240a74..f86628d6c0d 100644 --- a/admin/app/components/solidus_admin/users/items/component.rb +++ b/admin/app/components/solidus_admin/users/items/component.rb @@ -8,10 +8,6 @@ def initialize(user:, items:) @items = items end - def form_id - @form_id ||= "#{stimulus_id}--form-#{@user.id}" - end - def tabs [ { diff --git a/admin/app/components/solidus_admin/users/orders/component.rb b/admin/app/components/solidus_admin/users/orders/component.rb index 917156abfca..d2b80caf14d 100644 --- a/admin/app/components/solidus_admin/users/orders/component.rb +++ b/admin/app/components/solidus_admin/users/orders/component.rb @@ -8,10 +8,6 @@ def initialize(user:, orders:) @orders = orders end - def form_id - @form_id ||= "#{stimulus_id}--form-#{@user.id}" - end - def tabs [ {