(state, entitySetId)
| 271 | } |
| 272 | |
| 273 | export 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 | |
| 283 | export function selectDocumentContent(state, documentId) { |
| 284 | return selectObject(state, state.documentContent, documentId); |
no test coverage detected