MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / hasConditionValue

Function hasConditionValue

client/src/modules/chartRuntimeFilters.js:1–9  ·  view source on GitHub ↗
(filter = {})

Source from the content-addressed store, hash-verified

1function hasConditionValue(filter = {}) {
2 if (!filter) return false;
3
4 if (filter.operator === "isNull" || filter.operator === "isNotNull") {
5 return true;
6 }
7
8 return filter.value !== undefined && filter.value !== null && filter.value !== "";
9}
10
11const CLIENT_ONLY_FILTER_TYPES = new Set([
12 "pagination",

Callers 2

normalizeDashboardFilterFunction · 0.85
normalizeChartFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected