mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-17 14:32:34 +08:00
Merge pull request #916 from okriuchykhin/ok_SCI_1871
Fix canvas update [SCI-1871]
This commit is contained in:
commit
ac7746ae91
1 changed files with 2 additions and 2 deletions
|
|
@ -600,7 +600,7 @@ class Experiment < ApplicationRecord
|
|||
end
|
||||
|
||||
# There are no callbacks in Connection, so delete_all should be safe
|
||||
Connection.delete_all(output_id: my_modules)
|
||||
Connection.where(output_id: my_modules).delete_all
|
||||
|
||||
# Add new connections
|
||||
filtered_edges = dg.edges.collect { |e| [e.source, e.target] }
|
||||
|
|
@ -732,7 +732,7 @@ class Experiment < ApplicationRecord
|
|||
end
|
||||
|
||||
# Remove any existing module groups from modules
|
||||
unless MyModuleGroup.destroy_all(id: group_ids.to_a)
|
||||
unless MyModuleGroup.where(id: group_ids.to_a).destroy_all
|
||||
raise ActiveRecord::ActiveRecordError
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue