File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 166
166
< td class ="location-container " (click) ="onLocationClick() ">
167
167
< pr-static-map
168
168
[location] ="currentRecord.LocnVO || currentRecord.location "
169
- *ngIf ="currentRecord.location || currentRecord.LocnVO "
169
+ *ngIf ="currentRecord.location?.id || currentRecord.LocnVO "
170
170
> </ pr-static-map >
171
171
< span *ngIf ="currentRecord.location || currentRecord.LocnVO "> {{
172
172
(currentRecord.location || currentRecord.LocnVO | prLocation)
Original file line number Diff line number Diff line change 165
165
[class.can-edit] ="canEdit "
166
166
>
167
167
< pr-static-map
168
+ *ngIf ="selectedItem.location?.id || selectedItem.LocnVO "
168
169
[location] ="selectedItem.LocnVO || selectedItem.location "
169
170
> </ pr-static-map >
170
171
</ div >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { BaseVOData } from '@models/base-vo';
3
3
export interface LocnVOData extends BaseVOData {
4
4
locnId ?: number ;
5
5
timeZoneId ?: number ;
6
+ id ?: string ;
6
7
7
8
displayName ?: string ;
8
9
geoCodeLookup ?: string ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class PrLocationPipe implements PipeTransform {
15
15
constructor ( ) { }
16
16
17
17
transform ( locnVO : LocnVOData ) : LocnPipeOutput {
18
- if ( ! locnVO ) {
18
+ if ( ! locnVO || ! locnVO ?. id ) {
19
19
return null ;
20
20
}
21
21
You can’t perform that action at this time.
0 commit comments