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