fix(workspace): Setup Dynamic Link if value exists (#20402)
This commit is contained in:
parent
6c6a89bcdd
commit
eeeaedac65
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue