mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
fix for double params in dashboard widget request urls
This commit is contained in:
@ -119,6 +119,7 @@ function DashboardWidgets({widgetMetaDataList, tableName, entityPrimaryKey, omit
|
|||||||
{
|
{
|
||||||
let ampersand = "";
|
let ampersand = "";
|
||||||
let params = "";
|
let params = "";
|
||||||
|
|
||||||
if(entityPrimaryKey)
|
if(entityPrimaryKey)
|
||||||
{
|
{
|
||||||
params += `${ampersand}id=${entityPrimaryKey}`;
|
params += `${ampersand}id=${entityPrimaryKey}`;
|
||||||
@ -134,16 +135,13 @@ function DashboardWidgets({widgetMetaDataList, tableName, entityPrimaryKey, omit
|
|||||||
params += `${ampersand}${extraParams}`;
|
params += `${ampersand}${extraParams}`;
|
||||||
ampersand = "&";
|
ampersand = "&";
|
||||||
}
|
}
|
||||||
if(childUrlParams)
|
|
||||||
{
|
|
||||||
params += `${ampersand}${childUrlParams}`;
|
|
||||||
ampersand = "&";
|
|
||||||
}
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// see if local storage is used for any widget dropdowns, if so, look them //
|
// see if local storage is used for any widget dropdowns, if so, look them //
|
||||||
// up and append to the query string //
|
// up and append to the query string //
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
if(params === "")
|
||||||
|
{
|
||||||
let thisWidgetHasDropdowns = widgetMetaData && widgetMetaData.storeDropdownSelections && widgetMetaData.dropdowns;
|
let thisWidgetHasDropdowns = widgetMetaData && widgetMetaData.storeDropdownSelections && widgetMetaData.dropdowns;
|
||||||
let parentWidgetHasDropdowns = parentWidgetMetaData && parentWidgetMetaData.storeDropdownSelections && parentWidgetMetaData.dropdowns;
|
let parentWidgetHasDropdowns = parentWidgetMetaData && parentWidgetMetaData.storeDropdownSelections && parentWidgetMetaData.dropdowns;
|
||||||
if (thisWidgetHasDropdowns || parentWidgetHasDropdowns)
|
if (thisWidgetHasDropdowns || parentWidgetHasDropdowns)
|
||||||
@ -161,6 +159,7 @@ function DashboardWidgets({widgetMetaDataList, tableName, entityPrimaryKey, omit
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user