Skip to content

Commit

Permalink
Merge pull request #842 from anoopvarma-2000-p/main
Browse files Browse the repository at this point in the history
fix: resolve bug on aggrid operation time out #697
  • Loading branch information
ratheesh-kr authored Dec 9, 2024
2 parents 7ca299a + a692a03 commit 1d5850f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hub-prime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>org.techbd</groupId>
<artifactId>hub-prime</artifactId>
<version>0.372.0</version>
<version>0.373.0</version>
<packaging>war</packaging>
<name>Tech by Design Hub (Prime)</name>
<description>Tech by Design Hub (Primary)</description>
Expand Down
5 changes: 5 additions & 0 deletions hub-prime/src/main/resources/templates/js/aggrid-aide.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ export class AGGridAideBuilder {
window.location.href = '/?timeout=true'; // Redirect to login page
return; // Stop further processing
}
// Check if the Location header indicates a session timeout
if (response.headers.get('Location')?.includes('/?timeout=true')) {
window.location.href = '/?timeout=true'; // Redirect to login page
return;
}
if (response.ok) {
const serverRespPayload = await response.json();
if (withSecondaryColumns) {
Expand Down

0 comments on commit 1d5850f

Please sign in to comment.