fix: automatically update the page when scrolling
This commit is contained in:
@@ -35,6 +35,7 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
|
||||
|
||||
const updateHandler = (list: any) => {
|
||||
const data = list?.find((item: any) => item.data?.id === props.id);
|
||||
// state in InstanceRealLogStatus will not enable scorll load, because it is in the trasisition state
|
||||
if (data) {
|
||||
setEnableScorllLoad(
|
||||
() => !InstanceRealLogStatus.includes(data?.data?.state)
|
||||
|
||||
Reference in New Issue
Block a user