Skip to content

Commit

Permalink
fix: roles editor (#23976) (#23978)
Browse files Browse the repository at this point in the history
(cherry picked from commit 32469b5)

Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
  • Loading branch information
mergify[bot] and pateljannat committed Dec 27, 2023
1 parent 88e51ff commit 145d6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/roles_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frappe.RoleEditor = class {
this.frm = frm;
this.wrapper = wrapper;
this.disable = disable;
let user_roles = this.frm.doc.roles.map((a) => a.role);
let user_roles = this.frm.doc.roles ? this.frm.doc.roles.map((a) => a.role) : [];
this.multicheck = frappe.ui.form.make_control({
parent: wrapper,
df: {
Expand Down

0 comments on commit 145d6bd

Please sign in to comment.