chore(gql/catalog): making the client alittle more readabke

This commit is contained in:
blam
2020-08-10 11:09:30 +02:00
committed by Fredrik Adelöw
parent 69ed3dbe3a
commit cda9e0b3a0
@@ -27,6 +27,7 @@ export class CatalogClient {
throw new Error(`NOPE, ${await res.text()}`);
}
return await (res.json() as Promise<Entity[]>);
const entities: Entity[] = await res.json();
return entities;
}
}