From ac1c4af08bf4d5515e8f9d8444cee16442aabc5f Mon Sep 17 00:00:00 2001 From: Miquel Adell Date: Tue, 26 Nov 2024 12:01:52 +0100 Subject: [PATCH] Release 3.24.3 (#338) * fix typo in tracker events parameter * fix typo in tracker events parameter * [bugFix] program import error (#334) * fix: pass orgunits parameter as string to get teis * feat: get tracker job report when tracker jobs are complete * refactor: use single function to build ou parameter * feat: pass attributes inside tei enrollment * fix: include attributes in trackedEntity payload * bump version * Fix/failing template download (#337) * feat: sort template options alphabetically * feat: allow themes for custom templates * bump version --------- Co-authored-by: Eduardo Peredo Rivero Co-authored-by: Bhavana Narayanan Co-authored-by: Chukwudumebi Onwuli <37223065+deeonwuli@users.noreply.github.com> --- package.json | 2 +- .../template-selector/TemplateSelector.tsx | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index aa620e8..6a36ea1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bulk-load", "description": "Bulk importing made easy", - "version": "3.24.2", + "version": "3.24.3", "license": "GPL-3.0", "author": "EyeSeeTea team", "homepage": ".", diff --git a/src/webapp/components/template-selector/TemplateSelector.tsx b/src/webapp/components/template-selector/TemplateSelector.tsx index f44bb20..7d60984 100644 --- a/src/webapp/components/template-selector/TemplateSelector.tsx +++ b/src/webapp/components/template-selector/TemplateSelector.tsx @@ -176,7 +176,7 @@ export const TemplateSelector = ({ }; const onTemplateChange = ({ value }: SelectOption) => { - const [dataFormId, templateId] = value.split("-"); + const [dataFormId, templateId] = value.split(/-(.+)/).map(str => str.trim()); if (dataSource) { const { @@ -429,7 +429,7 @@ export const TemplateSelector = ({ /> )} - {themeOptions.length > 0 && state.templateType !== "custom" && ( + {themeOptions.length > 0 && (