mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
feat(freight): basics of train scheduling
This commit is contained in:
@@ -50,9 +50,6 @@ export function endpoint<TInput, TResponse>(
|
||||
if (queryKeyBuilder && input !== undefined) {
|
||||
return queryKeyBuilder(input as TInput);
|
||||
}
|
||||
if (queryKeyBuilder && input === undefined) {
|
||||
return queryKeyBuilder(undefined as TInput);
|
||||
}
|
||||
return input === undefined
|
||||
? [service, action]
|
||||
: [service, action, input];
|
||||
@@ -124,4 +121,4 @@ export function unwrap<T>(response: { data: T } | T): T {
|
||||
}
|
||||
|
||||
return response as T;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user