mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
fix: journal conflict handle
This commit is contained in:
@@ -442,7 +442,7 @@ const ConflictList = ({
|
||||
...attrs
|
||||
}: ConflictListProps) => {
|
||||
const t = useI18n();
|
||||
const currentDoc = useService(DocService).doc;
|
||||
const currentDocId = useServiceOptional(DocService)?.doc.id;
|
||||
const journalService = useService(JournalService);
|
||||
const { openConfirmModal } = useConfirmModal();
|
||||
|
||||
@@ -479,7 +479,7 @@ const ConflictList = ({
|
||||
{...attrs}
|
||||
>
|
||||
{docRecords.map(docRecord => {
|
||||
const isCurrent = docRecord.id === currentDoc.id;
|
||||
const isCurrent = currentDocId ? docRecord.id === currentDocId : false;
|
||||
return (
|
||||
<PageItem
|
||||
aria-selected={isCurrent}
|
||||
|
||||
Reference in New Issue
Block a user