|
@@ -46,12 +46,16 @@ const SentCellWidget = ({
|
|
|
const anchorInfo = useAppSelector(anchor);
|
|
const anchorInfo = useAppSelector(anchor);
|
|
|
const sid = `${sentData?.book}_${sentData?.para}_${sentData?.wordStart}_${sentData?.wordEnd}_${sentData?.channel.id}`;
|
|
const sid = `${sentData?.book}_${sentData?.para}_${sentData?.wordStart}_${sentData?.wordEnd}_${sentData?.channel.id}`;
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
- if (discussionMessage && discussionMessage.resId === initValue?.id) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ discussionMessage &&
|
|
|
|
|
+ discussionMessage.resId &&
|
|
|
|
|
+ discussionMessage.resId === initValue?.id
|
|
|
|
|
+ ) {
|
|
|
setBgColor("wheat");
|
|
setBgColor("wheat");
|
|
|
} else {
|
|
} else {
|
|
|
setBgColor("unset");
|
|
setBgColor("unset");
|
|
|
}
|
|
}
|
|
|
- }, [discussionMessage?.resId, initValue?.id]);
|
|
|
|
|
|
|
+ }, [discussionMessage, initValue?.id]);
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
if (anchorInfo && anchorInfo?.resId === initValue?.id) {
|
|
if (anchorInfo && anchorInfo?.resId === initValue?.id) {
|