Skip to content

Commit

Permalink
revert unrelated fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Kumar <[email protected]>
  • Loading branch information
abhinavkrin committed Sep 13, 2024
1 parent 6cf1f39 commit 732ed2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions apps/meteor/app/emoji/client/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ export const removeFromRecent = (emoji: string, recentEmojis: string[], setRecen
setRecentEmojis(recentEmojis);
};

export const updateRecent = (recentList: string | string[]) => {
if (!Array.isArray(recentList)) {
recentList = [recentList];
}
export const updateRecent = (recentList: string[]) => {
const recentPkgList: string[] = emoji.packages.base.emojisByCategory.recent;
recentList?.forEach((_emoji) => {
!recentPkgList.includes(_emoji) && recentPkgList.push(_emoji);
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/views/admin/customEmoji/CustomEmoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const CustomEmoji = ({ onClick, reload }: CustomEmojiProps) => {
<Box withTruncatedText>{emojis.name}</Box>
</GenericTableCell>
<GenericTableCell color='default'>
<Box withTruncatedText>{Array.isArray(emojis.aliases) ? emojis.aliases.join(', ') : emojis.aliases}</Box>
<Box withTruncatedText>{emojis.aliases}</Box>
</GenericTableCell>
</GenericTableRow>
))}
Expand Down

0 comments on commit 732ed2b

Please sign in to comment.