Skip to content

Commit

Permalink
Merge pull request #87 from PLG-Works/task/PageNotLoadingFix
Browse files Browse the repository at this point in the history
Added Page not loading fix and updated version
  • Loading branch information
Daksh Bhardwaj committed Sep 19, 2022
2 parents 8704ea6 + a1b12ee commit 06b4be9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2-beta.3
1.0.2
2 changes: 1 addition & 1 deletion example/LogTrackerExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"generate-keystore": "sh ./android/keystore/sample/generate_keystore.sh "
},
"dependencies": {
"@plgworks/applogger": "^1.0.2-beta.2",
"@plgworks/applogger": "1.0.2",
"@react-native-async-storage/async-storage": "^1.17.4",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plgworks/applogger",
"version": "1.0.2-beta.3",
"version": "1.0.2",
"description": "An application that helps minimize QA issue reporting time and developer debugging time.",
"private": false,
"main": "lib/index.js",
Expand Down
5 changes: 4 additions & 1 deletion src/helper/WebServerHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class WebServerHelper {
);
});
} else {
const currentIndex =
let currentIndex: number =
parseInt(urlParamsArrayForSessionDashboard[1], 10) || 1;
if (currentIndex === 0) {
httpBridge.respond(
Expand All @@ -399,6 +399,9 @@ class WebServerHelper {
const allKeys = Object.keys(allSessions);
allKeys.reverse();
const numberOfPages = Math.ceil(allKeys.length / 10);
if (currentIndex > numberOfPages) {
currentIndex = 1;
}
let sessionDataMap: Record<string, Array<string>> = {};
for (let index = 0; index < allKeys.length; index++) {
const pageNumber = Math.floor(index / 10) + 1;
Expand Down

0 comments on commit 06b4be9

Please sign in to comment.