mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 12:14:37 +08:00
Found the bug and fixed it
This commit is contained in:
parent
422baaf64a
commit
ab3b15e13e
1 changed files with 1 additions and 0 deletions
|
@ -515,6 +515,7 @@ class StepsController < ApplicationController
|
|||
params[:tables_attributes].each do |_, table|
|
||||
next unless table['_destroy']
|
||||
table_to_destroy = Table.find_by_id(table['id'])
|
||||
next if table_to_destroy.nil?
|
||||
table_to_destroy.report_elements.destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue