From bc798bd0b480cad471a9aa9843fdc197181fabe3 Mon Sep 17 00:00:00 2001 From: Cris Date: Wed, 20 Mar 2024 09:58:25 +0100 Subject: [PATCH] Added uniqueId prop to Filter.js to fix URL using apiFunctionParameters.filterUniqueId --- public/js/components/filter/Filter.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/components/filter/Filter.js b/public/js/components/filter/Filter.js index c447798a8..d76e716fd 100644 --- a/public/js/components/filter/Filter.js +++ b/public/js/components/filter/Filter.js @@ -65,6 +65,7 @@ export const CoreFilterCmpt = { newBtnClass: [String, Array, Object], newBtnDisabled: Boolean, newBtnLabel: String, + uniqueId: String, // TODO soll im master kommen? idField: String, parentIdField: String @@ -452,6 +453,9 @@ export const CoreFilterCmpt = { apiFunctionParameters.filterUniqueId = FHC_JS_DATA_STORAGE_OBJECT.called_path + "/" + FHC_JS_DATA_STORAGE_OBJECT.called_method; apiFunctionParameters.filterType = this.filterType; + if (this.uniqueId) + apiFunctionParameters.filterUniqueId += '_' + this.uniqueId; + // Assign parameters to the FetchCmpt binded properties this.fetchCmptApiFunctionParams = apiFunctionParameters; // Assign data fetch callback to the FetchCmpt binded properties