From d670b6939672932c1a3d17ab9913901491cb46e3 Mon Sep 17 00:00:00 2001 From: ajnart <49837342+ajnart@users.noreply.github.com> Date: Tue, 30 Jun 2026 18:40:27 +0200 Subject: [PATCH] fix(timetable): restore station search by removing disabled query guard The refactor from integration-based to option-based config changed the useQuery enabled condition from 'integrationIds.length > 0' (always true when an integration was linked) to 'query.length > 0'. The combination of the debounced search value and the enabled toggle inside the nested useOptions callback caused the query to never fire, making stations unsearchable in the edit form. Removing the enabled guard lets the query always run. The 300ms debounce already prevents excessive requests. --- packages/widgets/src/timetable/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/widgets/src/timetable/index.ts b/packages/widgets/src/timetable/index.ts index 0b146bf81..d6f5bc235 100644 --- a/packages/widgets/src/timetable/index.ts +++ b/packages/widgets/src/timetable/index.ts @@ -21,9 +21,6 @@ export const { componentLoader, definition } = createWidgetDefinition("timetable baseUrl: typeof options.baseUrl === "string" ? options.baseUrl : "https://search.ch", query, }, - { - enabled: query.length > 0, - }, ); return {