aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-02-27 17:13:27 -0500
committermehekj <mehek.jethani@gmail.com>2023-02-27 17:13:27 -0500
commitfcbcf0290c8da423667b94db9a92f41c962955ed (patch)
treebff2cdcc8fc0eb89e264700d7ac52a1ba36fd55e /src
parent222f659b8c291fafce2648e367392dd9f467cb25 (diff)
removed error
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 46510b6fe..379676f41 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -17,7 +17,7 @@ import { undoBatch } from '../../../util/UndoManager';
import { ContextMenu } from '../../ContextMenu';
import { ContextMenuProps } from '../../ContextMenuItem';
import { EditableView } from '../../EditableView';
-import { DocFocusOptions, DocumentView, ViewAdjustment } from '../../nodes/DocumentView';
+import { DocComponentView, DocFocusOptions, DocumentView, ViewAdjustment } from '../../nodes/DocumentView';
import { FormattedTextBox } from '../../nodes/formattedText/FormattedTextBox';
import { CollectionSubView } from '../CollectionSubView';
import './CollectionSchemaView.scss';
@@ -110,7 +110,7 @@ export class CollectionSchemaView extends CollectionSubView() {
}
componentDidMount() {
- this.props.setContentView?.(this);
+ this.props.setContentView?.(this as DocComponentView);
document.addEventListener('keydown', this.onKeyDown);
}