mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 00:55:37 +03:00
fix(core): fix page loading shimmer (#5027)
This commit is contained in:
parent
d7d47853fe
commit
06203498da
@ -158,7 +158,7 @@ export const DetailPage = (): ReactElement => {
|
||||
// wait for page to be loaded
|
||||
useEffect(() => {
|
||||
if (page) {
|
||||
if (!page.loaded) {
|
||||
if (!page.isEmpty) {
|
||||
setPageLoaded(true);
|
||||
} else {
|
||||
setPageLoaded(false);
|
||||
|
Loading…
Reference in New Issue
Block a user