CAUCA-9-1-1 / survip

SURVI-Prevention Desktop
2 stars 3 forks source link

We can't edit fire safety department #576

Closed yjacques940 closed 4 years ago

yjacques940 commented 4 years ago

Describe the bug When we try to open a form where it contains a picture, we have an error and we don't see the picture.

To Reproduce Steps to reproduce the behavior:

  1. Go to System management -> SSI -> edit OR SSI management -> buildings -> edit

Expected behavior We can edit the form &/or see the picture and all the info in the form

Screenshots If applicable, add screenshots to help explain your problem. image

Error in console : image

BuildingComponent.html:126 ERROR TypeError: Cannot read property 'nativeElement' of undefined at ImageComponent.push../src/app/shared/components/image/image.component.ts.ImageComponent.ngOnInit (image.component.ts:81) at checkAndUpdateDirectiveInline (core.js:21096) at checkAndUpdateNodeInline (core.js:29494) at checkAndUpdateNode (core.js:29456) at debugCheckAndUpdateNode (core.js:30090) at debugCheckDirectivesFn (core.js:30050) at Object.eval [as updateDirectives] (BuildingComponent.html:126) at Object.debugUpdateDirectives [as updateDirectives] (core.js:30042) at checkAndUpdateView (core.js:29438) at callWithDebugContext (core.js:30308) View_BuildingComponent_3 @ BuildingComponent.html:126 push../nodemodules/@angular/core/fesm5/core.js.DebugContext.logError @ core.js:30270 push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:4050 next @ core.js:26758 schedulerFn @ core.js:23734 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:192 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:130 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:76 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:53 push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47 push../node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:23718 (anonymous) @ core.js:26277 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:391 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:150 push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:26214 onHandleError @ core.js:26277 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:395 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:198 push../nodemodules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:498 invokeTask @ zone.js:1693 globalZoneAwareCallback @ zone.js:1730 BuildingComponent.html:126 ERROR CONTEXT DebugContext {view: {…}, nodeIndex: 7, nodeDef: {…}, elDef: {…}, elView: {…}}