@rh-support/utils 2.1.24-beta.1 → 2.1.24-beta.2
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.
|
@@ -28,7 +28,7 @@ exports.computeRecommendationAbstract = computeRecommendationAbstract;
|
|
|
28
28
|
function replaceHighlightingData(docs, highlighting) {
|
|
29
29
|
return docs.map((doc) => {
|
|
30
30
|
// highlight id is either uri or view_uri
|
|
31
|
-
// when we are uploading a file before adding "
|
|
31
|
+
// when we are uploading a file before adding "Problem statement" no highlighting doc is present hence passing an empty object
|
|
32
32
|
const highlightObj = highlighting
|
|
33
33
|
? highlighting[doc.resource_uri] || highlighting[doc.uri] || highlighting[doc.view_uri] || {}
|
|
34
34
|
: {};
|
|
@@ -18,7 +18,7 @@ export const computeRecommendationAbstract = (doc, truncateLen = 128) => {
|
|
|
18
18
|
export function replaceHighlightingData(docs, highlighting) {
|
|
19
19
|
return docs.map((doc) => {
|
|
20
20
|
// highlight id is either uri or view_uri
|
|
21
|
-
// when we are uploading a file before adding "
|
|
21
|
+
// when we are uploading a file before adding "Problem statement" no highlighting doc is present hence passing an empty object
|
|
22
22
|
const highlightObj = highlighting
|
|
23
23
|
? highlighting[doc.resource_uri] || highlighting[doc.uri] || highlighting[doc.view_uri] || {}
|
|
24
24
|
: {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.1.24-beta.
|
|
3
|
+
"version": "2.1.24-beta.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"defaults and supports es6-module",
|
|
98
98
|
"maintained node versions"
|
|
99
99
|
],
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "3e3acfa8926bac41a1ce7a644835760a3d548f38"
|
|
101
101
|
}
|