@ -40,7 +40,9 @@ json.exam do
json.all_questions_count @items.size
json.discipline do
json.(@exam.sub_discipline&.discipline, :id, :name)
if @exam.sub_discipline&.discipline.present?
end
json.sub_discipline do
json.(@exam.sub_discipline, :id, :name)