Skip to content

Commit 5605dbb

Browse files
authored
Merge pull request #4348 from jeclrsg/fix-comms-format-activity-kind
fix(comms): map Kind ints to strings in normalizeDetails
2 parents a721203 + ea2e769 commit 5605dbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/comms/src/ecl/workunit.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,10 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
685685
if (scopeProperty.Measure === "ns") {
686686
scopeProperty.Measure = "s";
687687
}
688+
if (scopeProperty.Name === "Kind") {
689+
const rawValue = parseInt(scopeProperty.RawValue, 10);
690+
scopeProperty.Formatted = meta.Activities.Activity.filter(a => a.Kind === rawValue)[0].Name ?? scopeProperty.RawValue;
691+
}
688692
columns[scopeProperty.Name] = { ...scopeProperty };
689693
safeDelete(columns, scopeProperty.Name, "RawValue");
690694
safeDelete(columns, scopeProperty.Name, "Formatted");

0 commit comments

Comments
 (0)