Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the edit thread title #9804

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

KaleemNeslit
Copy link
Collaborator

Link to Issue

Closes: #9280

@Israellund this PR also closed the #9282

Description of Changes

  • use the setDraftTitle , remove the condition to setDraftTitle to thread?.title when we clear every character .

"How We Fixed It"

  • use the setDraftTitle useState
    -remove the condition value={draftTitle || thread?.title} only used draftTitle
    -disable the save button when title is empty

Test Plan

make sure you're an admin
-go to a thread and click the 3 dots, choose Edit
-in edit mode try to edit the modal

  • here is video of testing
Screen.Recording.2024-11-05.at.7.27.08.PM.mov

@KaleemNeslit KaleemNeslit merged commit 0fbc368 into master Nov 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't edit thread titles
3 participants