@ibiz-template/model-helper 0.7.41-alpha.97 → 0.7.41-alpha.99
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/dist/index.esm.js +9 -1
- package/dist/index.system.min.js +1 -1
- package/out/model-util.d.ts.map +1 -1
- package/out/model-util.js +8 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -19601,7 +19601,15 @@ var ModelUtil = class {
|
|
|
19601
19601
|
const langs = app.getAllPSAppLans;
|
|
19602
19602
|
const lang = langs.find((item) => item.language === language);
|
|
19603
19603
|
if (lang) {
|
|
19604
|
-
|
|
19604
|
+
try {
|
|
19605
|
+
const result = await this.getModel(
|
|
19606
|
+
lang.path || lang.dynaModelFilePath
|
|
19607
|
+
);
|
|
19608
|
+
return result;
|
|
19609
|
+
} catch (error) {
|
|
19610
|
+
ibiz.log.error(error);
|
|
19611
|
+
return {};
|
|
19612
|
+
}
|
|
19605
19613
|
}
|
|
19606
19614
|
ibiz.log.error(ibiz.i18n.t("modelHelper.noSupported", { language }));
|
|
19607
19615
|
}
|