Skip to content

fix(LocalRepository): prevent failing for instances initialized from an empty array

Mazur Volodymyr requested to merge fix/LocalRepository-empty-array-source into master

Data fields should be assigned based on fieldList for such case to prevent errors like Using of attribute that not in fieldList is not allowed

Produce the error:

await UB.LocalRepository([], 'frm_Attribute').attrs('code', 'caption').orderBy('caption').selectSingle()
Edited by Mazur Volodymyr

Merge request reports

Loading