Browse Source

Error: Cannot read property 'alpha' of null (#687)

pull/1/head
Evgeny Smyshlyaev 6 years ago committed by rozetko
parent
commit
6bba52bbea
  1. 2
      server/src/routes/data_router.ts

2
server/src/routes/data_router.ts

@ -39,7 +39,7 @@ async function query(ctx: Router.IRouterContext) {
const analyticUnit = await AnalyticUnit.findById(analyticUnitId);
if(analyticUnit === undefined) {
if(analyticUnit === null) {
throw new Error(`can't find analytic unit ${analyticUnitId}`);
}

Loading…
Cancel
Save