tango-app-ui-manage-tickets 3.7.0-beta.60 → 3.7.0-beta.61
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/package.json
CHANGED
|
@@ -1176,7 +1176,7 @@ export class TicketFootfallNewComponent implements OnInit, OnDestroy {
|
|
|
1176
1176
|
getCategoryCommentCountForSource(
|
|
1177
1177
|
source: any,
|
|
1178
1178
|
category: string,
|
|
1179
|
-
|
|
1179
|
+
|
|
1180
1180
|
): number {
|
|
1181
1181
|
if (!source?.commentsDetails || !category) return 0;
|
|
1182
1182
|
|
|
@@ -1184,15 +1184,15 @@ getCategoryCommentCountForSource(
|
|
|
1184
1184
|
|
|
1185
1185
|
for (const block of source.commentsDetails) {
|
|
1186
1186
|
// 🔹 DUPLICATE: no block.comments, use block itself
|
|
1187
|
-
if (category === 'duplicate') {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}
|
|
1187
|
+
// if (category === 'duplicate') {
|
|
1188
|
+
// if (
|
|
1189
|
+
// block.category === 'duplicate' &&
|
|
1190
|
+
// (parentId == null || String(block.parent) === String(parentId))
|
|
1191
|
+
// ) {
|
|
1192
|
+
// count += 1; // each block = one comment thread
|
|
1193
|
+
// }
|
|
1194
|
+
// continue;
|
|
1195
|
+
// }
|
|
1196
1196
|
|
|
1197
1197
|
// 🔹 NON-DUPLICATE: old shapes
|
|
1198
1198
|
const comments = block?.comments || [];
|
|
@@ -1211,14 +1211,7 @@ getCategoryCommentCountForSource(
|
|
|
1211
1211
|
|
|
1212
1212
|
return count;
|
|
1213
1213
|
}
|
|
1214
|
-
getDuplicateCommentCountForParent(source: any, parentId: number | string): number {
|
|
1215
|
-
if (!source?.commentsDetails) return 0;
|
|
1216
1214
|
|
|
1217
|
-
return source.commentsDetails.filter(
|
|
1218
|
-
(b: any) =>
|
|
1219
|
-
b.category === 'duplicate' && String(b.parent) === String(parentId)
|
|
1220
|
-
).length;
|
|
1221
|
-
}
|
|
1222
1215
|
|
|
1223
1216
|
|
|
1224
1217
|
|