Просмотр исходного кода

fix problem when page.creator is undefined

Yuki Takei 5 лет назад
Родитель
Сommit
e1a93ed5cf
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/client/js/app.jsx

+ 1 - 2
src/client/js/app.jsx

@@ -109,14 +109,13 @@ if (pageContainer.state.pageId != null) {
     'liker-list': <LikerList />,
 
     'recent-created-icon': <RecentlyCreatedIcon />,
-    'user-created-list': <RecentCreated userId={pageContainer.state.creator._id} />,
     'user-bookmark-icon': <BookmarkIcon />,
-    'user-bookmark-list': <BookmarkList userId={pageContainer.state.creator._id} />,
   });
 }
 if (pageContainer.state.creator != null) {
   Object.assign(componentMappings, {
     'user-created-list': <RecentCreated userId={pageContainer.state.creator._id} />,
+    'user-bookmark-list': <BookmarkList userId={pageContainer.state.creator._id} />,
   });
 }
 if (pageContainer.state.path != null) {