Hello, I’ve noticed that when using coda.ParameterType.NumberArray
as type for a parameter with autocomplete, the sync table UI doesn’t allow multiple choices as it should, but act as a single choice list. coda.ParameterType.StringArray
with a similar autocomplete function works fine.
More over, given this parameter definition :
coda.makeParameter({
type: coda.ParameterType.NumberArray,
name: 'locations',
description: 'Filter results by locations.',
autocomplete: async function (context, search, args) {
const params = cleanQueryParams({
limit: REST_DEFAULT_LIMIT,
fields: ['id', 'title'].join(','),
});
let url = coda.withQueryParams(`${context.endpoint}/admin/api/${REST_DEFAULT_API_VERSION}/locations.json`, params);
const response = await makeGetRequest({ url, cacheTtlSecs: 0 }, context);
return coda.autocompleteSearchObjects(search, response.body.locations, 'title', 'id');
}
})
typescript types it as never
instead of number[]
Am I the only one ?