Ensure table resources are correctly displayed
This commit is contained in:
parent
5bca2fc6a0
commit
463bbef239
|
@ -11,7 +11,7 @@ export async function listServiceSpecs(): Promise<Record<string, ServiceInfos>>
|
|||
|
||||
export async function getServiceSpec(ssid: string): Promise<ServiceSpec> {
|
||||
if (ssid == "string") {
|
||||
return Promise.resolve(<ServiceSpec>{});
|
||||
return Promise.resolve(<ServiceSpec>{fields: null});
|
||||
} else {
|
||||
const res = await fetch(`/api/service_specs/` + ssid, {
|
||||
method: 'GET',
|
||||
|
|
Loading…
Reference in New Issue