Skip to content

Commit 50866f8

Browse files
committed
[bugfix] Fixed issue where deleting a reply won't rerender the note component
1 parent 86df405 commit 50866f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NotesPanel/NotesPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class NotesPanel extends React.PureComponent {
167167
return (
168168
<React.Fragment key={note.Id + getLatestActivityDate(note)}>
169169
{this.renderListSeparator(notes, note)}
170-
<Note visible={this.isVisibleNote(note)} annotation={note} replies={note.getReplies()} searchInput={this.state.searchInput} rootContents={note.getContents()} />
170+
<Note visible={this.isVisibleNote(note)} annotation={note} replies={[...note.getReplies()]} searchInput={this.state.searchInput} rootContents={note.getContents()} />
171171
</React.Fragment>
172172
);
173173
})

0 commit comments

Comments
 (0)