mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 02:22:24 -05:00
[bugfix/frontend] fix typo and other oddness in patchRemoteEmojis (#2281)
* fix emoji test model * found the bug! * remove unused 'current' import * comment useChecklistReducer * wah * lint * fix cleaner tests
This commit is contained in:
parent
21a101ebc4
commit
9114c5ca1b
7 changed files with 247 additions and 137 deletions
|
|
@ -127,11 +127,12 @@ function CopyEmojiForm({ localEmojiCodes, type, emojiList }) {
|
|||
{
|
||||
changedOnly: false,
|
||||
onFinish: ({ data }) => {
|
||||
if (data != undefined) {
|
||||
form.selectedEmoji.updateMultiple(
|
||||
// uncheck all successfully processed emoji
|
||||
data.map(([id]) => [id, { checked: false }])
|
||||
);
|
||||
if (data) {
|
||||
// uncheck all successfully processed emoji
|
||||
const processed = data.map((emoji) => {
|
||||
return [emoji.id, { checked: false }];
|
||||
});
|
||||
form.selectedEmoji.updateMultiple(processed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue