Fix cf customised setting check if there's no ID

This commit is contained in:
nathan 2023-10-13 10:01:24 -06:00
parent 511ea66d3e
commit 136c302c15

View File

@ -360,7 +360,7 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
// Add in settings that are objects // Add in settings that are objects
// Customized settings for this widget (unlikely) // Customized settings for this widget (unlikely)
const data = this.getArrayMgr("modifications").getEntry(this.id) ?? {}; const data = this.id ? this.getArrayMgr("modifications").getEntry(this.id) ?? {} : {};
// Check for global settings // Check for global settings
const global_data = this.getArrayMgr("modifications").getRoot().getEntry('~custom_fields~', true); const global_data = this.getArrayMgr("modifications").getRoot().getEntry('~custom_fields~', true);
if(global_data) if(global_data)