jshmchenxi opened a new pull request, #227: URL: https://github.com/apache/yunikorn-web/pull/227
### What is this PR for? When `stateLog` does not exist for some application returned by API `/ws/v1/partition/${partitionName}/queue/${queueName}/applications`, calling `appInfo.setLastStateChangeTime()` would trigger the following error: ``` TypeError: Cannot read properties of undefined (reading 'forEach') at wne.setLastStateChangeTime (main.ec6040d2f2dbf6bb.js:1:775934) ``` We should fall back to empty array for `AppInfo.stateLog` when it doesn't exist in the API response. ### What type of PR is it? * [ ] - Bug Fix * [ ] - Improvement * [ ] - Feature * [ ] - Documentation * [ ] - Hot Fix * [ ] - Refactoring ### Todos * [ ] - Task ### What is the Jira issue? YUNIKORN-2993 ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * [ ] - The licenses files need update. * [ ] - There is breaking changes for older versions. * [ ] - It needs documentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@yunikorn.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org