File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/data/src/lib/model-config Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export class ModelConfigService extends Config {
22
22
'modified'
23
23
] ;
24
24
25
- modelConfig = { } ;
26
25
27
26
/** Injects CrudService and SdkService. */
28
27
constructor ( private crud : CrudService ,
@@ -121,8 +120,7 @@ export class ModelConfigService extends Config {
121
120
* Utilizes PublicAPI#getFieldConfig + TypeConfigService#get.
122
121
* This config is meant to deliver the default behaviour when nothing else is configured. */
123
122
getFieldConfig ( model : string ) : Promise < FieldConfig > {
124
- this . modelConfig [ model ] = this . modelConfig [ model ] || this . sdk . api . getFieldConfig ( model ) ;
125
- return this . modelConfig [ model ] . then ( ( fieldConfig : fields ) => {
123
+ return this . sdk . api . getFieldConfig ( model ) . then ( ( fieldConfig : fields ) => {
126
124
const merged = { } ;
127
125
Object . assign ( merged , this . getSystemFields ( ) ) ;
128
126
Object . keys ( fieldConfig ) . map ( property => fieldConfig [ property ] )
You can’t perform that action at this time.
0 commit comments