1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-24 13:04:06 +00:00
bramw_baserow/web-frontend/modules/builder/utils/params.js

10 lines
309 B
JavaScript

/**
* Responsible for returning the default value for a parameter,
* based on the parameter's type.
*
* @param type The parameter's type (e.g. `text` or `numeric`).
* @returns {String} The default value.
*/
export function defaultValueForParameterType(type) {
return type === 'numeric' ? 1 : 'test'
}