Merge remote-tracking branch 'github/master'

parents 6ec499d7 8684544e
......@@ -34,7 +34,11 @@ export default class PasswordConverter extends AbstractConverter {
clone.customFields = this._customFieldConverter.fromArray([]);
}
} else {
clone.customFields = this._customFieldConverter.fromArray([]);
if(Array.isArray(clone.customFields) && clone.customFields.length > 0) {
clone.customFields = this._customFieldConverter.fromArray(clone.customFields);
} else {
clone.customFields = this._customFieldConverter.fromArray([]);
}
}
if(clone.hasOwnProperty('created') && !(clone.created instanceof Date)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment