osl-base-extended 1.0.5 → 1.0.6

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.
@@ -1856,7 +1856,7 @@ class DynamicForm {
1856
1856
  }
1857
1857
  else if (elem.apiService && elem.apiMethod && (!elem.searchType || elem.searchType == 'Local')) {
1858
1858
  elem.loadingIf = () => true;
1859
- const data = await this.datasourceCache.load(elem.apiService, elem.apiMethod, elem.apiBody);
1859
+ const data = await this.datasourceCache.load(elem.apiService, elem.apiMethod, elem.apiBody ? elem.apiBody(this.model) : null);
1860
1860
  elem.loadingIf = () => false;
1861
1861
  this.cdr.markForCheck();
1862
1862
  if (data && data.length > 0) {