aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaCellField.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaCellField.tsx b/src/client/views/collections/collectionSchema/SchemaCellField.tsx
index e2aa27a95..ffda334ec 100644
--- a/src/client/views/collections/collectionSchema/SchemaCellField.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaCellField.tsx
@@ -34,15 +34,17 @@ export class SchemaCellField extends ObservableReactComponent<SchemaCellFieldPro
constructor(props: SchemaCellFieldProps) {
super(props);
makeObservable(this);
+ setTimeout(() => {
+ this._unrenderedContent = this._props.GetValue() ?? '';
+ this.setContent(this._unrenderedContent, true);
+ }, 0); //must be moved to end of batch or else other docs aren't loaded, so render as d-1 in function
}
get docIndex(){return DocumentView.getDocViewIndex(this._props.Document);} // prettier-ignore
componentDidMount(): void {
- setTimeout(() => {
- this._unrenderedContent = this._props.GetValue() ?? '';
- this.setContent(this._unrenderedContent, true);
- }, 0); //must be moved to end of batch or else other docs aren't loaded, so render as d-1 in function
+ this._unrenderedContent = this._props.GetValue() ?? '';
+ this.setContent(this._unrenderedContent, true);
this._disposers.editing = reaction(
() => this._editing,
editing => {