Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jan 2, 2024
1 parent c7d3138 commit af63ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const notebookLogic = kea<notebookLogicType>([
scope: ActivityScope.NOTEBOOK,
item_id: props.shortId,
}),
['comments'],
['comments', 'itemContext'],
],
actions: [
notebooksModel,
Expand All @@ -86,7 +86,7 @@ export const notebookLogic = kea<notebookLogicType>([
scope: ActivityScope.NOTEBOOK,
item_id: props.shortId,
}),
['setItemContext', 'sendComposedContentSuccess', 'maybeLoadComments'],
['setItemContext', 'maybeLoadComments'],
],
})),
actions({
Expand Down Expand Up @@ -669,7 +669,7 @@ export const notebookLogic = kea<notebookLogicType>([
.map((comment) => comment.item_context?.id)

editor.getMarks('comment').forEach((mark) => {
if (!commentMarkIds.includes(mark.id)) {
if (!commentMarkIds.includes(mark.id) && values.itemContext?.context?.id !== mark.id) {
editor.removeComment(mark.pos)
}
})
Expand Down

0 comments on commit af63ae8

Please sign in to comment.