Skip to content

Ошибка при переходе к favorites #191

Description

@XaoGao

Если нажать в navbar на ссылку Favorites то появляется ошибка

wrong number of arguments (given 4, expected 3)

class Task::TaskComponent < ViewComponent::Base
  attr_reader :project, :task, :status

  def initialize(project, status, task)
    @project = project
    @task = task
    @status = status
  end

Скорей всего нужно в файле new app/views/favorites/index.html.slim исправить входные параметры в строке

= render Task::TaskComponent.new(favorite.project, nil, favorite, current_user)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions