mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add traling breakline to case where errors come in a array
This commit is contained in:
@@ -7,7 +7,7 @@ angular.module("admin.utils").factory "ErrorsParser", ->
|
||||
errorsString = ""
|
||||
if errors.length > 0
|
||||
# it is an array of errors
|
||||
errorsString = errors.join("\n")
|
||||
errorsString = errors.join("\n") + "\n"
|
||||
else
|
||||
# it is a hash of errors
|
||||
keys = Object.keys(errors)
|
||||
|
||||
Reference in New Issue
Block a user