Commit 715cf12
committed
Delegate to WorkPackageResource#formattedId in display field
The wpFormattedId getter duplicated the semantic/classic detection
logic from WorkPackageResource#formattedId and tripped eslint's
no-unsafe-* rules because this.value resolves to any.
Cast this.value to WorkPackageResource so the loaded-resource path
can delegate to the existing formattedId getter. The unloaded
fallback (numeric ID from self-link href) stays as-is, with a cast
on this.wpId to clear the last unsafe-assignment warning without
touching the pre-existing (untyped) wpId getter.1 parent 5631b53 commit 715cf12
1 file changed
Lines changed: 8 additions & 8 deletions
File tree
frontend/src/app/shared/components/fields/display/field-types/work-package-display-field.module.ts
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments