UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

15 lines 465 B
import merge from 'lodash/merge'; export default function getFormInitialValues(defaultValues, record) { var finalInitialValues = merge({}, getValues(defaultValues, record), record); return finalInitialValues; } function getValues(values, record) { if (typeof values === 'object') { return values; } if (typeof values === 'function') { return values(record); } return {}; } //# sourceMappingURL=getFormInitialValues.js.map