aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-05-30 13:58:40 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-05-30 13:58:40 -0400
commit7ff649c6582b7e00dcf2d7fe607699f850310ba0 (patch)
tree681ca2195a948ee86b556e6a4ba49b833f298ada /src/client/views/collections
parentf07a80b23080d01411f47f331854adb3cc89e92f (diff)
fixing chatbox features
still messages appear weird when using code interpreter and now doesn't detect file links
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionNoteTakingViewColumn.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingViewColumn.tsx b/src/client/views/collections/CollectionNoteTakingViewColumn.tsx
index 44ab1968d..2c6257cf2 100644
--- a/src/client/views/collections/CollectionNoteTakingViewColumn.tsx
+++ b/src/client/views/collections/CollectionNoteTakingViewColumn.tsx
@@ -1,6 +1,6 @@
/* eslint-disable jsx-a11y/control-has-associated-label */
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
-import { action, computed, makeObservable, observable } from 'mobx';
+import { action, computed, makeObservable, observable, runInAction } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
import { lightOrDark, returnEmptyString } from '../../../ClientUtils';
@@ -88,12 +88,16 @@ export class CollectionNoteTakingViewColumn extends ObservableReactComponent<CSV
};
componentDidMount(): void {
- this._ele && this.props.refList.push(this._ele);
+ runInAction(() => {
+ this._ele && this.props.refList.push(this._ele);
+ });
}
componentWillUnmount() {
- this._ele && this.props.refList.splice(this._props.refList.indexOf(this._ele), 1);
- this._ele = null;
+ runInAction(() => {
+ this._ele && this.props.refList.splice(this._props.refList.indexOf(this._ele), 1);
+ this._ele = null;
+ });
}
@undoBatch