sccoreui 5.4.8 → 5.4.9
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.
|
@@ -331,9 +331,8 @@ const FormulaCoponent = (props) => {
|
|
|
331
331
|
case "CALCULATION": {
|
|
332
332
|
const pattern = /[a-f0-9]{24}/g;
|
|
333
333
|
const ids = props === null || props === void 0 ? void 0 : props.formulaValue.match(pattern);
|
|
334
|
-
console.log(ids);
|
|
335
334
|
let text = props === null || props === void 0 ? void 0 : props.formulaValue;
|
|
336
|
-
for (let i = 0; i < ids.length; i++) {
|
|
335
|
+
for (let i = 0; i < (ids === null || ids === void 0 ? void 0 : ids.length); i++) {
|
|
337
336
|
let id = ids[i];
|
|
338
337
|
let name = (_b = fieldOptions.find((item) => item.id === id)) === null || _b === void 0 ? void 0 : _b.name;
|
|
339
338
|
text = text.replaceAll(id, name);
|