So all this while been using the wrong API for autocomplete mentions

🫣🫣🫣
pull/228/head
Lim Chee Aun 2023-09-27 13:37:12 +08:00
rodzic 0403fc35f4
commit 173cad2275
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -931,6 +931,14 @@ function Compose({
}}
maxCharacters={maxCharacters}
performSearch={(params) => {
const { type, q, limit } = params;
if (type === 'accounts') {
return masto.v1.accounts.search({
q,
limit,
resolve: false,
});
}
return masto.v2.search(params);
}}
/>
@ -1269,7 +1277,7 @@ const Textarea = forwardRef((props, ref) => {
return;
}
console.log({ value, type, v: value[type] });
const results = value[type];
const results = value[type] || value;
console.log('RESULTS', value, results);
let html = '';
results.forEach((result) => {