mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
Fixed FieldsArray.push to preserve the order of input items
This commit is contained in:
@@ -67,7 +67,7 @@ function registerWithValidation(
|
||||
|
||||
let validItems: Schemas.Field[] = [];
|
||||
|
||||
for (let i = items.length, field: Schemas.Field; (field = items[--i]); ) {
|
||||
for (const field of items) {
|
||||
try {
|
||||
Schemas.assertValidity(
|
||||
Schemas.Field,
|
||||
|
||||
Reference in New Issue
Block a user