aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionLinearView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-10 11:41:26 -0500
committerbobzel <zzzman@gmail.com>2021-02-10 11:41:26 -0500
commit5e9faf9fc5a2aeb3b5c0377b756a746934097619 (patch)
tree3a1f23e2289827fe0214f92666f3635db5fd9da9 /src/client/views/collections/CollectionLinearView.tsx
parent861363c59997db5cde1b96786b156b64630465d7 (diff)
changed docViewPath to be a function to avoid mobx invalidations
Diffstat (limited to 'src/client/views/collections/CollectionLinearView.tsx')
-rw-r--r--src/client/views/collections/CollectionLinearView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionLinearView.tsx b/src/client/views/collections/CollectionLinearView.tsx
index 79cc1719c..ead0ce6c4 100644
--- a/src/client/views/collections/CollectionLinearView.tsx
+++ b/src/client/views/collections/CollectionLinearView.tsx
@@ -7,7 +7,7 @@ import { documentSchema } from '../../../fields/documentSchemas';
import { Id } from '../../../fields/FieldSymbols';
import { makeInterface } from '../../../fields/Schema';
import { BoolCast, NumCast, ScriptCast, StrCast } from '../../../fields/Types';
-import { emptyFunction, returnTrue, Utils, emptyPath } from '../../../Utils';
+import { emptyFunction, returnTrue, Utils, emptyPath, returnEmptyDoclist } from '../../../Utils';
import { DragManager } from '../../util/DragManager';
import { Transform } from '../../util/Transform';
import { DocumentLinksButton } from '../nodes/DocumentLinksButton';
@@ -153,7 +153,7 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) {
focus={emptyFunction}
styleProvider={this.props.styleProvider}
layerProvider={this.props.layerProvider}
- docViewPath={emptyPath}
+ docViewPath={returnEmptyDoclist}
parentActive={returnTrue}
whenActiveChanged={emptyFunction}
bringToFront={emptyFunction}