Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Feb 16, 2023
1 parent 57553d8 commit d2e6011
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions apps/meteor/app/ui-message/client/popup/ComposerBoxPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ const ComposerBoxPopup = <
const t = useTranslation();
const id = useUniqueId();

const itemsFlat = useMemo(() => items
.flatMap((item) => {
if (item.isSuccess) {
return item.data;
}
return [];
})
.sort((a, b) => (('sort' in a && a.sort) || 0) - (('sort' in b && b.sort) || 0)), [items])
const itemsFlat = useMemo(
() =>
items
.flatMap((item) => {
if (item.isSuccess) {
return item.data;
}
return [];
})
.sort((a, b) => (('sort' in a && a.sort) || 0) - (('sort' in b && b.sort) || 0)),
[items],
);

const isLoading = items.some((item) => item.isLoading && item.fetchStatus !== 'idle');

Expand Down

0 comments on commit d2e6011

Please sign in to comment.