Skip to content

Commit

Permalink
Merge branch 'fix-view-chat-history-in-thread' into 'master'
Browse files Browse the repository at this point in the history
Make channel optional for toast in post view

See merge request kchat/webapp!929
  • Loading branch information
antonbuks committed Sep 23, 2024
2 parents 59e0828 + aa16c6e commit beba0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/channels/src/components/toast_wrapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function makeGetRootPosts() {
return Object.values(allPosts).filter((post) => {
return (
post.root_id === '' &&
post.channel_id === channel.id &&
post.channel_id === channel?.id &&
post.state !== Posts.POST_DELETED
);
}).reduce((map: Record<string, boolean>, obj) => {
Expand Down

0 comments on commit beba0a2

Please sign in to comment.