From 8ae8ff6d2ee425c14ec1187cabc8b9ac78dd0666 Mon Sep 17 00:00:00 2001 From: rcmenno <129762469+rcmenno@users.noreply.github.com> Date: Mon, 14 Oct 2024 09:42:43 +0200 Subject: [PATCH] fix mistake and bump to 0.1.10 --- PWA/package.json | 2 +- .../FetchEventHandlers/ListDistributionRequestHandler.js | 2 +- PWA/public/index.html | 2 +- .../FetchEventHandlers/ListDistributionRequestHandler.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 @@ - +