ngx-render-material-forms 1.7.7 → 1.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/select/select.component.mjs +7 -2
- package/fesm2015/ngx-render-material-forms.js +6 -1
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +6 -1
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2867,7 +2867,12 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2867
2867
|
// Get the current hostname
|
|
2868
2868
|
const hostname = window.location.hostname;
|
|
2869
2869
|
const baseApiUrl = baseUrlMapping[hostname] || null;
|
|
2870
|
-
|
|
2870
|
+
let url = `${baseApiUrl}/api/VendorFormBuilder/GetVendorProducts?vendorId=${envendorId}&pageNumber=${enpageNumber}&pageSize=${enpageSize}&search=${ensearchQuery}&onlyActive=${enactive}&includeDescription=${endescription}`;
|
|
2871
|
+
// Only add includeCurrencyId if it has a valid value
|
|
2872
|
+
if (encodeIncludeCurrencyId !== null && encodeIncludeCurrencyId !== undefined) {
|
|
2873
|
+
url += `&includeCurrencyId=${encodeIncludeCurrencyId}`;
|
|
2874
|
+
}
|
|
2875
|
+
this.http.get(url, { headers }).subscribe(response => {
|
|
2871
2876
|
if (response && response.code === 200) {
|
|
2872
2877
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2873
2878
|
this.totalPages = response?.data?.totalPages;
|