diff --git a/PWA/package.json b/PWA/package.json index 7a85713..0b8915e 100644 --- a/PWA/package.json +++ b/PWA/package.json @@ -1,6 +1,6 @@ { "name": "ReliefBox", - "version": "0.1.10", + "version": "0.1.11", "description": "A tool for managing the distribution of relief items during humanitarian emergencies.", "main": "index.js", "scripts": { diff --git a/PWA/public/Services/FetchEventHandlers/ListDistributionRequestHandler.js b/PWA/public/Services/FetchEventHandlers/ListDistributionRequestHandler.js index 6250987..90ad990 100644 --- a/PWA/public/Services/FetchEventHandlers/ListDistributionRequestHandler.js +++ b/PWA/public/Services/FetchEventHandlers/ListDistributionRequestHandler.js @@ -12,7 +12,7 @@ export class ListDistributionRequestHandler extends ActiveSessionContainer { const distributions = await this.activeSession.database.readDistributions(); console.log(distributions); if (distributions.length > 0) { - return ResponseTools.wrapInHTPLTemplateAndReplaceKeysWithValues(await fetch(RouteEvents.listDistributions), { + return ResponseTools.wrapInHTPLTemplateAndReplaceKeysWithValues(RouteEvents.listDistributions, { columns: Distribution.colums, rows: distributions }); diff --git a/PWA/public/index.html b/PWA/public/index.html index 6be48a4..e84b93f 100644 --- a/PWA/public/index.html +++ b/PWA/public/index.html @@ -39,7 +39,7 @@ -
+ diff --git a/PWA/src/Services/FetchEventHandlers/ListDistributionRequestHandler.ts b/PWA/src/Services/FetchEventHandlers/ListDistributionRequestHandler.ts index e691c13..d24212f 100644 --- a/PWA/src/Services/FetchEventHandlers/ListDistributionRequestHandler.ts +++ b/PWA/src/Services/FetchEventHandlers/ListDistributionRequestHandler.ts @@ -18,7 +18,7 @@ export class ListDistributionRequestHandler extends ActiveSessionContainer imple if(distributions.length > 0) { return ResponseTools.wrapInHTPLTemplateAndReplaceKeysWithValues( - await fetch(RouteEvents.listDistributions), { + RouteEvents.listDistributions, { columns: Distribution.colums, rows: distributions })