MCPcopy Create free account
hub / github.com/alephdata/aleph / selectProfile

Function selectProfile

ui/src/selectors.js:273–281  ·  view source on GitHub ↗
(state, entitySetId)

Source from the content-addressed store, hash-verified

271}
272
273export function selectProfile(state, entitySetId) {
274 const profile = selectObject(state, state.entitySets, entitySetId);
275 if (profile?.merged?.schema && !profile?.entity?.id) {
276 const model = selectModel(state);
277 profile.entity = model.getEntity(profile.merged);
278 profile.entity.latinized = profile.merged.latinized;
279 }
280 return profile;
281}
282
283export function selectDocumentContent(state, documentId) {
284 return selectObject(state, state.documentContent, documentId);

Callers 2

mapStateToPropsFunction · 0.90
selectProfileReferencesFunction · 0.85

Calls 3

selectObjectFunction · 0.85
selectModelFunction · 0.85
getEntityMethod · 0.45

Tested by

no test coverage detected