File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/app/core/admin/admin-entity Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,15 @@ export class AdminEntityComponent implements OnInit {
101101 this . configEntitySettings = this . entityConstructor ;
102102 }
103103
104- private loadViewConfig < C = EntityDetailsConfig | EntityListConfig > (
105- viewId : string ,
106- ) : C | undefined {
104+ private loadViewConfig <
105+ C = EntityDetailsConfig | EntityListConfig | undefined ,
106+ > ( viewId : string ) : C | undefined {
107107 const viewConfig : ViewConfig < C > = this . configService . getConfig ( viewId ) ;
108108
109109 // work on a deep copy as we are editing in place (for titles, sections, etc.)
110- return JSON . parse ( JSON . stringify ( viewConfig . config ) ) ;
110+ return viewConfig ?. config
111+ ? JSON . parse ( JSON . stringify ( viewConfig . config ) )
112+ : undefined ;
111113 }
112114
113115 cancel ( ) {
You can’t perform that action at this time.
0 commit comments