Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix refresh during task pending #246

Merged
merged 1 commit into from
Jun 30, 2022
Merged

fix: fix refresh during task pending #246

merged 1 commit into from
Jun 30, 2022

Conversation

hetao92
Copy link
Contributor

@hetao92 hetao92 commented Jun 30, 2022

No description provided.

const needRefresh = taskList.filter(item => item.status === ITaskStatus.StatusProcessing).length > 0;
if(logDimension.id !== undefined && logDimension.status === ITaskStatus.StatusProcessing) {
const loadingStatus = [ITaskStatus.StatusProcessing, ITaskStatus.StatusPending]
const needRefresh = taskList.filter(item => loadingStatus.includes(item.status)).length > 0;
Copy link
Contributor

@huaxiabuluo huaxiabuluo Jun 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const needRefresh = taskList.some(task => loadingStatus.includes(task.status));

@hetao92 hetao92 merged commit 12d6e5c into master Jun 30, 2022
@hetao92 hetao92 deleted the hetao-cloud branch July 5, 2022 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants