mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
11 lines
309 B
JavaScript
11 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'
|
|
}
|