Render all available labels to project on project labels dropdown

parent 1e6d136a
......@@ -18,7 +18,7 @@ class Projects::LabelsController < Projects::ApplicationController
respond_to do |format|
format.html
format.json do
render json: @labels.as_json(only: [:id, :title, :color])
render json: @available_labels.as_json(only: [:id, :title, :color])
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment