Skip to content

[FIX] Custom emoji route in admin#23882

Merged
dougfabris merged 4 commits intoRocketChat:developfrom
sidmohanty11:custom-emoji-route-fix
Dec 14, 2021
Merged

[FIX] Custom emoji route in admin#23882
dougfabris merged 4 commits intoRocketChat:developfrom
sidmohanty11:custom-emoji-route-fix

Conversation

@sidmohanty11
Copy link
Copy Markdown
Contributor

@sidmohanty11 sidmohanty11 commented Dec 7, 2021

fixes #23858

As there were two "CustomEmoji" files, the .js file was given more priority but intended purpose was to import the newly created tsx file. I tried to dig into it and found out this code-tsc, maybe this sets priority in way that .js > .tsx. So, almost everything that is received from props are coming out to be undefined. Hence, we get that error. By removing the js file, the problem gets resolved.

Proposed changes (including videos or screenshots)

fix-custom-emoji.mp4

Issue(s)

Closes #23858

Further comments

Also, I think it makes more sense to add the "delete" button only on the edit custom emoji part and not while adding a custom emoji.

@dougfabris dougfabris self-assigned this Dec 10, 2021
dougfabris
dougfabris previously approved these changes Dec 11, 2021
@dougfabris dougfabris added this to the 4.3.0 milestone Dec 11, 2021
@dougfabris dougfabris merged commit ac24dd5 into RocketChat:develop Dec 14, 2021
@sampaiodiego sampaiodiego mentioned this pull request Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A blank screen appears when I try to access Custom Emoji in the sidebar of Administration

3 participants