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 @@ - +