make changeSets Sets (duh) to avoid repetition

This commit is contained in:
Torsten 2023-01-05 17:47:20 +02:00
parent 61a261470d
commit c7cad11b89
2 changed files with 4 additions and 3 deletions

View File

@ -13,9 +13,9 @@ module Merged
def zero
[Page, Section, Card].each { |m| m.reload(true) }
@adds = []
@edits = []
@deletes = []
@adds = Set.new
@edits = Set.new
@deletes = Set.new
end
def add( type , text)

View File

@ -27,6 +27,7 @@
%td.px-4.py-2.text-gray-700
- changeset(type , element).each do |name|
=name.last
%br
.grid.grid-cols-3.bg-white
.items-center.justify-center.col-span-2