PharmaLedger-IMI / ctr-workspace

UC8 Clinical Trials Recruitment
MIT License
2 stars 0 forks source link

v0.7.1 ctr-backoffice-frontend core.js:6162 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'false'. Current value: 'true' #38

Closed joaoluis-pdm closed 3 years ago

joaoluis-pdm commented 3 years ago

When editing a trial

core.js:6162 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'false'. Current value: 'true'.. Find more at https://angular.io/errors/NG0100
    at throwErrorIfNoChangesMode (core.js:6744)
    at bindingUpdated (core.js:12881)
    at Module.ɵɵproperty (core.js:14681)
    at TrialdetailComponent_Template (trialdetail.component.html:119)
    at executeTemplate (core.js:9549)
    at refreshView (core.js:9418)
    at refreshComponent (core.js:10584)
    at refreshChildComponents (core.js:9215)
    at refreshView (core.js:9468)
    at refreshEmbeddedViews (core.js:10538)

Could be related to timestamp ? (See also https://github.com/PharmaLedger-IMI/acdc-workspace/blame/2a2b4e61c7d8aa4d48f799b6cc053c9e446c5905/backoffice-frontend/src/app/app.component.ts#L43 )

joaoluis-pdm commented 3 years ago

The workaround in commit c365093 seems good enough for now.