@mxmweb/rtext 1.6.22 → 1.6.23
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/index.js +4 -1
- package/package.json +1 -1
- package/stats.html +1 -1
package/index.js
CHANGED
|
@@ -28323,7 +28323,10 @@ const B7 = Ne.div.attrs({
|
|
|
28323
28323
|
}
|
|
28324
28324
|
let Fe = [];
|
|
28325
28325
|
try {
|
|
28326
|
-
|
|
28326
|
+
if (_) {
|
|
28327
|
+
const X = JSON.parse(_);
|
|
28328
|
+
Fe = Array.isArray(X) ? X : X && Array.isArray(X.knowledgeRefs) ? X.knowledgeRefs : [];
|
|
28329
|
+
}
|
|
28327
28330
|
} catch (X) {
|
|
28328
28331
|
console.error("Failed to parse reference:", X);
|
|
28329
28332
|
}
|