Skip to content

Commit

Permalink
Merge pull request #102 from JaroslawZielinski/feature/frontend-ui-co…
Browse files Browse the repository at this point in the history
…mponent-fixes

Frontend Ui Component Fixes
  • Loading branch information
JaroslawZielinski authored Aug 20, 2024
2 parents ca37015 + 06e619c commit 4d0ab71
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 4d0ab71

Please sign in to comment.