diff options
| author | bob <bcz@cs.brown.edu> | 2020-01-28 18:14:59 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-01-28 18:14:59 -0500 |
| commit | 0361c04360362c31e4bdd5d27b52707b4e288662 (patch) | |
| tree | 8d2682b9a664c7f4e43ddb240ea135525d0bd416 /src/client/views/collections/CollectionPivotView.tsx | |
| parent | d1ed73e0a0fa3f3da9811edfe3233c663d34cffa (diff) | |
added captions to carousel. cleaned up some stuff.
Diffstat (limited to 'src/client/views/collections/CollectionPivotView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionPivotView.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionPivotView.tsx b/src/client/views/collections/CollectionPivotView.tsx index 66c7c9745..6de20593b 100644 --- a/src/client/views/collections/CollectionPivotView.tsx +++ b/src/client/views/collections/CollectionPivotView.tsx @@ -9,7 +9,6 @@ import { listSpec } from "../../../new_fields/Schema"; import { ComputedField, ScriptField } from "../../../new_fields/ScriptField"; import { Cast, StrCast } from "../../../new_fields/Types"; import { Docs } from "../../documents/Documents"; -import { CompileScript } from "../../util/Scripting"; import { EditableView } from "../EditableView"; import { anchorPoints, Flyout } from "../TemplateMenu"; import { CollectionFreeFormView } from "./collectionFreeForm/CollectionFreeFormView"; @@ -104,9 +103,7 @@ export class CollectionPivotView extends CollectionSubView(doc => doc) { const flyout = ( <div className="collectionPivotView-flyout" style={{ width: `${this._facetWidth}` }}> {this._allFacets.map(facet => <label className="collectionPivotView-flyout-item" key={`${facet}`} onClick={e => this.facetClick(facet)}> - <input type="checkbox" onChange={e => { }} checked={this.props.Document._facetCollection instanceof Doc && DocListCast(this.props.Document._facetCollection.data).some(d => { - return d.title === facet; - })} /> + <input type="checkbox" onChange={e => { }} checked={DocListCast((this.props.Document._facetCollection as Doc)?.data).some(d => d.title === facet)} /> <span className="checkmark" /> {facet} </label>)} |
