Skip to content

Commit

Permalink
Merge branch 'rm/361316' into 'master'
Browse files Browse the repository at this point in the history
pass id of draft from props instead of draftFromChannel const

See merge request kchat/webapp!936
  • Loading branch information
antonbuks committed Oct 3, 2024
2 parents 928d230 + f1690a1 commit a5627b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class AdvancedCreatePost extends React.PureComponent<Props, State> {
const updatedDraft = {
...this.props.draft,
...this.draftsForChannel[channelId],
id: this.draftsForChannel[channelId]?.id ?? this.props.draft.id,
id: this.props.draft.id,
timestamp: scheduleUTCTimestamp,
channelId,
remote: false,
Expand Down

0 comments on commit a5627b6

Please sign in to comment.