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.
This commit is contained in:
1 parent
8747d5f93e
commit
d670b69396
1 file changed
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user