diff options
author | bob <bcz@cs.brown.edu> | 2019-12-10 14:25:22 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-12-10 14:25:22 -0500 |
commit | ac980a647ad0a0c814e18810c2008a0443ec6c0d (patch) | |
tree | a87345173f640f1bc1108fc2dc823d6dc2ec0e7b /src/client/views/nodes/FormattedTextBoxComment.tsx | |
parent | 810e5a128d9832f61c3841da989c049ba5d76676 (diff) |
fixed libraryPath issues causing infinite rendering loops.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBoxComment.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBoxComment.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FormattedTextBoxComment.tsx b/src/client/views/nodes/FormattedTextBoxComment.tsx index ed98d9db6..409229c1a 100644 --- a/src/client/views/nodes/FormattedTextBoxComment.tsx +++ b/src/client/views/nodes/FormattedTextBoxComment.tsx @@ -4,7 +4,7 @@ import { EditorView } from "prosemirror-view"; import * as ReactDOM from 'react-dom'; import { Doc } from "../../../new_fields/Doc"; import { Cast, FieldValue, NumCast } from "../../../new_fields/Types"; -import { emptyFunction, returnEmptyString, returnFalse, Utils } from "../../../Utils"; +import { emptyFunction, returnEmptyString, returnFalse, Utils, emptyPath } from "../../../Utils"; import { DocServer } from "../../DocServer"; import { DocumentManager } from "../../util/DocumentManager"; import { schema } from "../../util/RichTextSchema"; @@ -179,7 +179,7 @@ export class FormattedTextBoxComment { if (target) { ReactDOM.render(<ContentFittingDocumentView Document={target} - LibraryPath={[]} + LibraryPath={emptyPath} fitToBox={true} moveDocument={returnFalse} getTransform={Transform.Identity} |