Skip to content

Commit

Permalink
Frontend Ui Component Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarosław Zieliński committed Aug 20, 2024
1 parent ca37015 commit 06e619c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion view/base/web/js/form/element/siglum.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ define([
return selectedTorah[selectedGroup][this.parts.book]['chapters'];
},
renderSetChapter: function () {
const chapters = this.getCurrentChapters().toArray();
const chapters = utils.fixArray(this.getCurrentChapters());
let buttons = Object
.keys(chapters)
.reduce(
Expand Down
3 changes: 3 additions & 0 deletions view/base/web/js/verses/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ define([
}).done(function (data) {
callBack(data);
});
},
fixArray: function (array) {
return JSON.parse(JSON.stringify(array));
}
};
});

0 comments on commit 06e619c

Please sign in to comment.