fix: model logs loading

This commit is contained in:
jialin
2024-11-29 13:41:28 +08:00
parent 890287ce72
commit 435161854c
13 changed files with 104 additions and 26 deletions
@@ -36,7 +36,9 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
const updateHandler = (list: any) => {
const data = list?.find((item: any) => item.data?.id === props.id);
if (data) {
setEnableScorllLoad(!InstanceRealLogStatus.includes(data?.data?.state));
setEnableScorllLoad(
() => !InstanceRealLogStatus.includes(data?.data?.state)
);
}
};