diff --git a/lib/assets/data/currentFilter.json b/lib/assets/data/currentFilter.json index 0b7e6a757f4cb68b0442e0e30297c47a3ba05b4d..659cf2610cc23ef0561bd99ff4aebc0fcd662213 100644 --- a/lib/assets/data/currentFilter.json +++ b/lib/assets/data/currentFilter.json @@ -1,49 +1,61 @@ { "filter": [ { - "label": "Art der Ressource", - "id": "type", - "options": [{ - "label": "Plattformen", - "id": "platform", - "value": "platform" - },{ - "label": "Basisdienste", - "id": "base", - "value": "base" - },{ - "label": "Software", - "id": "software", - "value": "software" - },{ - "label": "APIs", - "id": "api", - "value": "api" - }] + "label": "Art der Ressource", + "id": "type", + "options": [{ + "label": "Plattformen", + "id": "platform", + "value": "platform" + },{ + "label": "Basisdienste", + "id": "base", + "value": "base" + },{ + "label": "Software", + "id": "software", + "value": "software" + },{ + "label": "APIs", + "id": "api", + "value": "api" + },{ + "label": "Information / Hilfestellung", + "id": "Information / Hilfestellung", + "value": "Information / Hilfestellung" + },{ + "label": "Kollaboration", + "id": "Kollaboration", + "value": "Kollaboration" + },{ + "label": "Vorgabe / Richtlinie", + "id": "Vorgabe / Richtlinie", + "value": "Vorgabe / Richtlinie" + }] }, { - "label": "Status", - "id": "status", - "options": [{ - "label": "Produktiv", - "id": "production", - "value": "production" - }, - { - "label": "In Entwicklung", - "id": "development", - "value": "development" - }, - { - "label": "Alpha", - "id": "alpha", - "value": "alpha" - }, - { - "label": "Beta", - "id": "beta", - "value": "beta" - }] + "label": "Status", + "id": "status", + "options": [{ + "label": "Produktiv", + "id": "production", + "value": "production" + }, + { + "label": "In Entwicklung", + "id": "development", + "value": "development" + }, + { + "label": "Eingestellt", + "id": "discontinued", + "value": "discontinued" + }, + { + "label": "Beta", + "id": "beta", + "value": "beta" + }] } ] } \ No newline at end of file diff --git a/lib/contentful/index.ts b/lib/contentful/index.ts index a37f23405ec6a61e0c387ede65d5036d38a00bc3..ddb8bd07ded9ffbec09e9ba576b74f8bd07e82ed 100644 --- a/lib/contentful/index.ts +++ b/lib/contentful/index.ts @@ -46,7 +46,6 @@ export async function fetchService(slug): Promise<Entry<any>> { const services = await client.getEntries({ content_type: 'service', }) - return services.items.find( (service: Entry<ServiceType>) => service.fields.slug === slug )