mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
fix validator path
This commit is contained in:
1 parent
12ccf622c1
commit
e4fe984a70
1 file changed
+1
-1
@@ -83,7 +83,7 @@ module Params
|
||||
old_path = @current_path
|
||||
|
||||
params.dig(*path)&.each_with_index do |item, index|
|
||||
@current_path = old_path + [*path].map(&:to_s).join('.') + "[#{index}]"
|
||||
@current_path = [old_path, [*path].map(&:to_s).join('.') + "[#{index}]"].compact_blank.join('.')
|
||||
|
||||
yield item if item
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user