diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-10 22:25:37 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-10 22:25:37 -0500 |
| commit | 784d1bfccf65437942d4b7d373d5f1295eda8c87 (patch) | |
| tree | 22e42a3e0d0a547d7fcf9e0817de5b56391fc349 /src/client/views/collections/collectionFreeForm | |
| parent | 896db53261aca91de21eabfaa6fed0c1b27e3e51 (diff) | |
fixed infinite loop in treeView. changed styleProvider signature back to have an optional 'props'
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index a8e24ebbe..1b6cfbd21 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -395,7 +395,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P } } - getClusterColor = (doc: Opt<Doc>, props: DocumentViewProps, property: string) => { + getClusterColor = (doc: Opt<Doc>, props: Opt<DocumentViewProps>, property: string) => { let clusterColor = this.props.styleProvider?.(doc, props, property); // bcz: check 'props' used to be renderDepth + 1 if (property !== "backgroundColor") return clusterColor; const cluster = NumCast(doc?.cluster); |
