(math: string | undefined, groupTypeIndex: number | null | undefined)
| 258 | } |
| 259 | /** Serialize a math selector value. Inverse of mathTypeToApiValues. */ |
| 260 | export function apiValueToMathType(math: string | undefined, groupTypeIndex: number | null | undefined): string { |
| 261 | let assembledMath = math || BaseMathType.TotalCount |
| 262 | if (math === 'unique_group') { |
| 263 | assembledMath += `::${groupTypeIndex}` |
| 264 | } |
| 265 | return assembledMath |
| 266 | } |
| 267 | |
| 268 | export const mathsLogic = kea<mathsLogicType>({ |
| 269 | path: ['scenes', 'trends', 'mathsLogic'], |
no outgoing calls
no test coverage detected
searching dependent graphs…