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

Function getFiltersFromStorage

client/src/containers/Chart/Chart.jsx:56–63  ·  view source on GitHub ↗
(projectId)

Source from the content-addressed store, hash-verified

54import { buildChartRuntimeRequest, normalizeChartFilterCondition } from "../../modules/chartRuntimeFilters";
55
56const getFiltersFromStorage = (projectId) => {
57 try {
58 const filters = JSON.parse(window.localStorage.getItem("_cb_filters"));
59 return filters[projectId] || null;
60 } catch (e) {
61 return null;
62 }
63};
64
65/*
66 This is the container that generates the Charts together with the menu

Callers 3

ChartFunction · 0.70
_onGetChartDataFunction · 0.70
_runFilteringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected