fix: language does not refresh after toggling
This commit is contained in:
@@ -79,9 +79,7 @@ const MultiCompare: React.FC<MultiCompareProps> = ({ modelList, loaded }) => {
|
||||
const modelRefList = Object.getOwnPropertySymbols(modelRefs.current);
|
||||
modelRefList.forEach((instanceId: symbol) => {
|
||||
const ref = modelRefs.current[instanceId];
|
||||
ref?.setMessageList((preList: any) => {
|
||||
return [...preList, { ...message }];
|
||||
});
|
||||
ref?.addNewMessage(message);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user