(filter)
| 41 | } |
| 42 | |
| 43 | function buildFilterKey(filter) { |
| 44 | return JSON.stringify({ |
| 45 | origin: filter.origin || "dashboard", |
| 46 | scope: filter.scope || "chart", |
| 47 | cdcId: filter.cdcId ?? null, |
| 48 | type: filter.type || "field", |
| 49 | field: filter.field || null, |
| 50 | operator: filter.operator || null, |
| 51 | value: normalizeValue(filter.value), |
| 52 | startDate: filter.startDate || null, |
| 53 | endDate: filter.endDate || null, |
| 54 | exposed: Boolean(filter.exposed), |
| 55 | }); |
| 56 | } |
| 57 | |
| 58 | function normalizeDashboardFilter(filter, chartId) { |
| 59 | if (!filter) return null; |
no test coverage detected