aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesDocContextSelector.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-05-09 00:02:30 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-05-09 00:02:30 -0400
commit2f5f13946cf0a1ec87efddbfbbc6a9fd878da924 (patch)
treeea9ec90561f73ed1c977e0538699c5f53b3c4712 /src/client/views/PropertiesDocContextSelector.tsx
parent0766ba00727e9e13ced2e16cfb049d49711fa738 (diff)
parentfa4d377b53c9ca31d8900d9c11bd25be57025962 (diff)
Merge branch 'nathan-starter' of https://github.com/brown-dash/Dash-Web into nathan-starter
Diffstat (limited to 'src/client/views/PropertiesDocContextSelector.tsx')
-rw-r--r--src/client/views/PropertiesDocContextSelector.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/PropertiesDocContextSelector.tsx b/src/client/views/PropertiesDocContextSelector.tsx
index 7465c727a..1fea36d16 100644
--- a/src/client/views/PropertiesDocContextSelector.tsx
+++ b/src/client/views/PropertiesDocContextSelector.tsx
@@ -10,7 +10,7 @@ import { Cast, StrCast } from '../../fields/Types';
import { ObservableReactComponent } from './ObservableReactComponent';
import './PropertiesDocContextSelector.scss';
import { CollectionDockingView } from './collections/CollectionDockingView';
-import { DocFocusOrOpen, DocumentView } from './nodes/DocumentView';
+import { DocumentView } from './nodes/DocumentView';
import { OpenWhere } from './nodes/OpenWhere';
type PropertiesDocContextSelectorProps = {
@@ -58,7 +58,7 @@ export class PropertiesDocContextSelector extends ObservableReactComponent<Prope
getOnClick = (clickCol: Doc) => {
if (!this._props.DocView) return;
const col = Doc.IsDataProto(clickCol) ? Doc.MakeDelegate(clickCol) : clickCol;
- DocFocusOrOpen(Doc.GetProto(this._props.DocView.Document), undefined, col);
+ DocumentView.FocusOrOpen(Doc.GetProto(this._props.DocView.Document), undefined, col);
};
render() {