Skip to content

Commit

Permalink
Adapt NotificationFilterComponentPreview
Browse files Browse the repository at this point in the history
To stop using data from DB for the view component preview.
  • Loading branch information
saraycp committed Apr 14, 2023
1 parent d0fcc5b commit 21a5026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class NotificationFilterComponentPreview < ViewComponent::Preview
# Preview at http://HOST:PORT/rails/view_components/notification_filter_component/preview
def preview
User.admins.first.run_as do
User.new.run_as do
view_component = NotificationFilterComponent.new(selected_filter: { type: 'comments' },
projects_for_filter: { OBS: 1 },
groups_for_filter: { heroes: 1 })
Expand Down

0 comments on commit 21a5026

Please sign in to comment.