Skip to content

Commit 82e8eee

Browse files
committed
fix collapse bug
1 parent e925df7 commit 82e8eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/threadclient-ui-web/src/components/flat_posts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function ActionBarItems(props: {
229229
}): JSX.Element {
230230
return <>
231231
{/* now I want a <Show whenAll={{a, b, c}}>{(props) => } */}
232-
{props.opts.collapse_data && props.opts.flat_frame != null && (
232+
{props.opts.collapse_data && props.opts.flat_frame != null && props.opts.flat_frame.collapse && (
233233
postContentCollapseInfo(props.post, props.opts.flat_frame).user_controllable
234234
// TODO: dispatch this event to the post - eg a post may not have collapse data but still
235235
// have a collapse button and we need to tell it to collapse then

0 commit comments

Comments
 (0)