(option)
| 21 | export const getAgentConfigOptions = (item) => (Array.isArray(item?.options) ? item.options : []) |
| 22 | |
| 23 | export const getAgentConfigOptionValue = (option) => { |
| 24 | if (typeof option !== 'object' || option === null) return option |
| 25 | return ( |
| 26 | option.key || |
| 27 | option.id || |
| 28 | option.value || |
| 29 | option.name || |
| 30 | option.db_id || |
| 31 | option.slug || |
| 32 | option.label |
| 33 | ) |
| 34 | } |
| 35 | |
| 36 | export const getAgentConfigOptionLabel = (option) => { |
| 37 | if (typeof option !== 'object' || option === null) return option |
no outgoing calls
no test coverage detected