aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-02 20:48:17 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-02 20:48:17 -0700
commit0cbf69270e2aa999b81c90f27429756d9fbd5ca2 (patch)
tree06fb7a175aa1d9e73271c717639e08cc561d6b08 /src/client/views/MainView.tsx
parent2b3e0ca4f889054020fd9b3c4a1e2db8d57581c1 (diff)
parentaa74a1e78dbd874942def0b763917198df51e01b (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into bug_fixes
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index e6e80d9fb..a87a07b62 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -83,6 +83,7 @@ export class MainView extends React.Component {
componentDidMount() {
new InkStrokeProperties();
+ this._sidebarContent.proto = undefined;
DocServer.setPlaygroundFields(["dataTransition", "_viewTransition", "_panX", "_panY", "_viewScale", "_viewType", "_chromeStatus"]); // can play with these fields on someone else's
DocServer.GetRefField("rtfProto").then(proto => (proto instanceof Doc) && reaction(() => StrCast(proto.BROADCAST_MESSAGE), msg => msg && alert(msg)));
@@ -527,7 +528,7 @@ export class MainView extends React.Component {
TraceMobx();
return <div className="mainView-searchPanel">
<SearchBox Document={CurrentUserUtils.MySearchPanelDoc}
- DataDoc={undefined}
+ DataDoc={CurrentUserUtils.MySearchPanelDoc}
fieldKey="data"
dropAction="move"
isSelected={returnTrue}