We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf239f commit e96582cCopy full SHA for e96582c
src/api/entitycore/queries/model/circuit.ts
@@ -62,6 +62,9 @@ export async function getCircuit({
62
id: string;
63
context?: WorkspaceContext | null;
64
}) {
65
+ if (id == null) {
66
+ throw new Error(`circuit id is not valid ${id}`);
67
+ }
68
const api = await entityCoreApi();
69
return await api.get<ICircuit>(`${baseUri}/${id}`, {
70
headers: {
0 commit comments