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

This commit is contained in:
blam
2020-08-10 11:09:30 +02:00
parent f5eb812847
commit 4d4ead15c4
@@ -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;
}
}