Add to label :id to response
This commit is contained in:
parent
f0c4f72735
commit
faaab2aef8
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
class Dashboard::LabelsController < Dashboard::ApplicationController
|
||||
def index
|
||||
labels = Label.where(project_id: projects).select(:title, :color).uniq(:title)
|
||||
labels = Label.where(project_id: projects).select(:id, :title, :color).uniq(:title)
|
||||
|
||||
respond_to do |format|
|
||||
format.json { render json: labels }
|
||||
|
|
Loading…
Reference in a new issue