mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #20776 from overleaf/dp-resolve-lint
Provide empty decoration set to useMoreComments when addCommentRanges is undefined GitOrigin-RevId: 40b7ae41ef783586d4304f2896397d8e84628e18
This commit is contained in:
@@ -31,6 +31,7 @@ import { hasActiveRange } from '@/features/review-panel-new/utils/has-active-ran
|
||||
import { addCommentStateField } from '@/features/source-editor/extensions/add-comment'
|
||||
import ReviewPanelMoreCommentsButton from './review-panel-more-comments-button'
|
||||
import useMoreCommments from '../hooks/use-more-comments'
|
||||
import { Decoration } from '@codemirror/view'
|
||||
|
||||
type AggregatedRanges = {
|
||||
changes: Change<EditOperation>[]
|
||||
@@ -216,7 +217,7 @@ const ReviewPanelCurrentFile: FC = () => {
|
||||
} = useMoreCommments(
|
||||
aggregatedRanges?.changes ?? [],
|
||||
aggregatedRanges?.comments ?? [],
|
||||
addCommentRanges
|
||||
addCommentRanges ?? Decoration.none
|
||||
)
|
||||
|
||||
const updatePositions = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user