mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
refactor
This commit is contained in:
parent
e7328c2e20
commit
590135b9b3
1 changed files with 2 additions and 1 deletions
|
@ -45,8 +45,9 @@ class RepositoryRowsController < ApplicationController
|
|||
end
|
||||
end
|
||||
end
|
||||
raise ActiveRecord::Rollback if errors[:repository_cells].any?
|
||||
end
|
||||
record.destroy if errors[:repository_cells].any?
|
||||
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
if errors[:default_fields].empty? && errors[:repository_cells].empty?
|
||||
|
|
Loading…
Reference in a new issue