mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-24 13:04:06 +00:00
10 lines
309 B
JavaScript
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'
|
|
}
|