diff --git a/app/controllers/repository_rows_controller.rb b/app/controllers/repository_rows_controller.rb index cae4b6076..ffbf4bd97 100644 --- a/app/controllers/repository_rows_controller.rb +++ b/app/controllers/repository_rows_controller.rb @@ -210,7 +210,7 @@ class RepositoryRowsController < ApplicationController return render json: { name: @repository_row.name } if update_params['repository_row'].present? column = row_cell_update.column - cell = row_cell_update.cell.reload + cell = row_cell_update.cell&.reload || row_cell_update.cell data = { value_type: column.data_type, id: column.id, value: nil } return render json: data if cell.blank?