mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
fix: reset doc mode correctly (#7071)
it looks like a typo to me, but no obvious issue has been reported related to it?
This commit is contained in:
@@ -128,7 +128,7 @@ const DetailPageImpl = memo(function DetailPageImpl() {
|
|||||||
globalContext.docMode.set(mode);
|
globalContext.docMode.set(mode);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
globalContext.docId.set(null);
|
globalContext.docMode.set(null);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user