chore: defaults
This commit is contained in:
parent
5e61359dc7
commit
a5385cfd0f
|
@ -20,7 +20,7 @@ export const gatherWithLatus = (context) => (latus) => (
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
export default (latus, type, idAttribute, typeAttribute, check = () => {}) => {
|
export default (latus, type, idAttribute = 'id', typeAttribute = 'type', check = () => {}) => {
|
||||||
const gathered = latus.invokeReduce(type);
|
const gathered = latus.invokeReduce(type);
|
||||||
check(gathered, type);
|
check(gathered, type);
|
||||||
const composed = latus.invokeComposed(`${type}.decorate`, gathered);
|
const composed = latus.invokeComposed(`${type}.decorate`, gathered);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user