Skip to content

Commit 0b433be

Browse files
committed
fix: could not define custom components for entry field types
1 parent d1865c3 commit 0b433be

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

packages/data/src/model-config/model-config.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export class ModelConfigService extends Config {
103103
readOnly: schema.properties[property].readOnly,
104104
// required: schema.required.indexOf(property) !== -1,
105105
display: ((value) => value)
106-
}, fieldConfig[property] ? fieldConfig[property] : {},
107-
this.typeConfig.get(type.name));
106+
}, this.typeConfig.get(type.name),
107+
fieldConfig[property] ? fieldConfig[property] : {});
108108
});
109109
return fieldConfig;
110110
});

packages/data/src/model-config/type-config.service.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,4 @@ export class TypeConfigService {
143143
}
144144
Object.assign(this.types[type], config);
145145
}
146-
147-
/** Resolves entry/entries from nested resource or id inside (single and array).
148-
* Gives back standardizes "light" entries {id, _entryTitle} */
149-
/*static resolveEntries(entry, item, property, value = entry[property]) {
150-
if (Array.isArray(value)) {
151-
return value ? value.map((e) => TypeConfigService.resolveEntries(entry, item, property, e)) : [];
152-
}
153-
if (typeof value === 'string') {
154-
//TODO use getLevels when ready
155-
//TODO is it possible to get the model title field of the nested entry? (and useful)
156-
return { id: value, _entryTitle: entry.getTitle(property) };
157-
}
158-
if (value && value.getTitle) {
159-
// return { id: value.id, _entryTitle: value.getTitle('') }
160-
return { id: value.id, _entryTitle: value.getTitle() }
161-
//TODO use modelTitleField when it is possible to get it with lvl1
162-
}
163-
}*/
164146
}

0 commit comments

Comments
 (0)