fix(comboadress): provide a valid empty response
This commit is contained in:
parent
da5618b9fc
commit
396f545cf2
1 changed files with 6 additions and 1 deletions
|
@ -75,7 +75,12 @@ const defaultQueryFn: QueryFunction<unknown, QueryKey> = async ({
|
|||
|
||||
// BAN will error with queries less then 3 chars long
|
||||
if (scope == 'adresse' && term.length < 3) {
|
||||
return [];
|
||||
return {
|
||||
type: 'FeatureCollection',
|
||||
version: 'draft',
|
||||
features: [],
|
||||
query: term
|
||||
};
|
||||
}
|
||||
|
||||
const url = buildURL(scope, term, extra);
|
||||
|
|
Loading…
Reference in a new issue