@websolutespa/payload-plugin-bowl
Version:
Bowl PayloadCms plugin of the BOM Repository
18 lines (17 loc) • 388 B
JavaScript
import { deepMerge } from '@websolutespa/payload-utils';
export const RelatedDefaults = {
name: 'related',
type: 'blocks',
blocks: [],
maxRows: 1,
admin: {
initCollapsed: true
}
};
export const withRelated = (options)=>{
const field = deepMerge({
...RelatedDefaults
}, options);
return field;
};
//# sourceMappingURL=withRelated.js.map