MCPcopy Create free account
hub / github.com/alephdata/aleph / hasFacet

Method hasFacet

ui/src/app/Query.js:226–228  ·  view source on GitHub ↗
(field)

Source from the content-addressed store, hash-verified

224 }
225
226 hasFacet(field) {
227 return this.getList('facet').indexOf(field) !== -1;
228 }
229
230 defaultFacet(field, total = false) {
231 if (!this.hasFacet(field)) {

Callers 2

defaultFacetMethod · 0.95
mapStateToPropsFunction · 0.80

Calls 1

getListMethod · 0.95

Tested by

no test coverage detected