Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 5b35a4f

Browse files
committed
Use MFP-level collapse and expand functions
1 parent 97154cb commit 5b35a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/views/multi-file-patch-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ export default class MultiFilePatchView extends React.Component {
352352
toggleFile={() => this.props.toggleFile(filePatch)}
353353

354354
isCollapsed={!filePatch.getRenderStatus().isVisible()}
355-
triggerCollapse={filePatch.triggerCollapse}
356-
triggerExpand={filePatch.triggerExpand}
355+
triggerCollapse={() => this.props.multiFilePatch.collapseFilePatch(filePatch)}
356+
triggerExpand={() => this.props.multiFilePatch.expandFilePatch(filePatch)}
357357
/>
358358
{this.renderSymlinkChangeMeta(filePatch)}
359359
{this.renderExecutableModeChangeMeta(filePatch)}

0 commit comments

Comments
 (0)