Fix when not having READ rights on the parent
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2020-08-01 09:44:32 +02:00
parent c682fb9184
commit 6785bfc3e0
3 changed files with 7 additions and 9 deletions

10
package-lock.json generated
View File

@ -2692,14 +2692,12 @@
}
},
"@farmmaps/common": {
"version": "0.0.1-prerelease.325",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common/-/common-0.0.1-prerelease.325.tgz",
"integrity": "sha512-taXTcyYXHqkSZfKCKr9Oqp/eXA15NY3ryIBZ3W3nV43VvzPEQHQJSiMt8uSR1/Xwt7Vim0rTjaiVF2kS0iuz9g=="
"version": "0.0.1-prerelease.349",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common/-/common-0.0.1-prerelease.349.tgz",
"integrity": "sha512-CLANnjefX8vpIIOHX/eutPG9H/7PD/rgG5HH/VhmXjTwSjU97W4xf+iLow4SvukVFfikQ1EDnWECx/6uKKRIUg=="
},
"@farmmaps/common-map": {
"version": "0.0.1-prerelease.325",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map/-/common-map-0.0.1-prerelease.325.tgz",
"integrity": "sha512-T33qDcusnxKab8hlTxgcQEfANPDag+Ys1+32UvPwkVlk7Gfa5sm0Xw6on70epBOINHMfvbsVpm3dV/lIdgZHhA=="
"version": "file:dist/common-map"
},
"@istanbuljs/schema": {
"version": "0.1.2",

View File

@ -19,8 +19,8 @@
"@angular/platform-browser": "~9.1.0",
"@angular/platform-browser-dynamic": "~9.1.0",
"@angular/router": "~9.1.0",
"@farmmaps/common": ">=0.0.1-prerelease.325 <0.0.1",
"@farmmaps/common-map": ">=0.0.1-prerelease.325 <0.0.1",
"@farmmaps/common": ">=0.0.1-prerelease.349 <0.0.1",
"@farmmaps/common-map": "file:dist/common-map",
"@microsoft/signalr": "^3.1.3",
"@ng-bootstrap/ng-bootstrap": "^6.0",
"@ngrx/effects": "^9.0",

View File

@ -177,7 +177,7 @@ export class MapEffects {
return this.itemService$.getItem(child.parentCode)
.pipe(map(parent => {
return {child, parent};
})
}),catchError(() => { let parent:IItem = null;return of({child,parent})})
);
}),
map(data => new mapActions.SelectItemSuccess(data.child, data.parent)),