Skip to content

Commit

Permalink
fix(workspace): Setup Dynamic Link if value exists
Browse files Browse the repository at this point in the history
Co-authored-by: gavin <gavin18d@gmail.com>
  • Loading branch information
mergify[bot] and gavindsouza committed Mar 20, 2023
1 parent 50e7455 commit b393d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/widgets/widget_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ class ShortcutDialog extends WidgetDialog {
reqd: 1,
options: "type",
onchange: () => {
if (this.dialog.get_value("type") == "DocType") {
let doctype = this.dialog.get_value("link_to");
const doctype = this.dialog.get_value("link_to");
if (doctype && this.dialog.get_value("type") == "DocType") {
frappe.model.with_doctype(doctype, () => {
let meta = frappe.get_meta(doctype);

Expand Down

0 comments on commit b393d5b

Please sign in to comment.