Ensure table resources are correctly displayed

This commit is contained in:
nemunaire 2023-11-19 11:56:19 +01:00
parent 5bca2fc6a0
commit 463bbef239
1 changed files with 1 additions and 1 deletions

View File

@ -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',