Skip to content

Commit

Permalink
Improve performance for survey.getUsedLocales() function fix #8591 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov authored Jul 22, 2024
1 parent e2ae824 commit 8639a52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,8 @@ export class Base {
}
if (!!this.arraysInfo) {
for (let key in this.arraysInfo) {
const prop = this.getPropertyByName(key);
if(!prop || !prop.isSerializable) continue;
let items = this.getPropertyValue(key);
if (!items || !items.length) continue;
for (let i = 0; i < items.length; i++) {
Expand Down

0 comments on commit 8639a52

Please sign in to comment.