MCPcopy
hub / github.com/chartbrew/chartbrew / _filterTableFields

Function _filterTableFields

client/src/components/TableConfiguration.jsx:33–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 const [tableColumns, setTableColumns] = useState([]);
32
33 const _filterTableFields = () => {
34 const filteredFields = [];
35 tableFields.forEach((field) => {
36 if (!dataset.excludedFields || !dataset.excludedFields.find((i) => i === field.accessor)) {
37 filteredFields.push(field);
38 }
39 });
40
41 return filteredFields;
42 };
43
44 const _onExcludeField = (field) => {
45 const excludedFields = dataset.excludedFields || [];

Callers 1

TableConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected