chore: unnecessary JS warning if options are not defined in date field
This commit is contained in:
parent
d7072cf729
commit
25af0c8217
1 changed files with 3 additions and 1 deletions
|
|
@ -158,8 +158,10 @@ frappe.ui.form.ControlDate = class ControlDate extends frappe.ui.form.ControlDat
|
|||
return value;
|
||||
}
|
||||
get_df_options() {
|
||||
if(!this.df.options) return {};
|
||||
|
||||
let options = {};
|
||||
let df_options = this.df.options || '';
|
||||
let df_options = this.df.options;
|
||||
if (typeof df_options === 'string') {
|
||||
try {
|
||||
options = JSON.parse(df_options);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue