Skip to content

Commit d1ba2d6

Browse files
committed
fix(organizational-chart): update can_create check for empty state rendering
1 parent b7f006b commit d1ba2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hrms/public/js/hierarchy_chart/hierarchy_chart_desktop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ hrms.HierarchyChart = class {
259259
const empty_html = frappe.render_template("hierarchy_empty_state", {
260260
doctype: me.doctype,
261261
company: me.company,
262-
can_create: frappe.model.can_create("Employee"),
262+
can_create: frappe.model.can_create(me.doctype),
263263
device_type: "desktop",
264264
});
265265

0 commit comments

Comments
 (0)